| 3847 | } |
| 3848 | |
| 3849 | void QC_ApplicationWindow::activateWindowWithFile(QString& fileName) |
| 3850 | { |
| 3851 | if (!fileName.isEmpty()){ |
| 3852 | foreach (QC_MDIWindow *w, window_list) { |
| 3853 | if (w != nullptr){} |
| 3854 | RS_Document *doc = w->getDocument(); |
| 3855 | if (doc != nullptr){ |
| 3856 | const QString &docFileName = doc->getFilename(); |
| 3857 | if (fileName == docFileName){ |
| 3858 | doActivate(w); |
| 3859 | break; |
| 3860 | } |
| 3861 | } |
| 3862 | } |
| 3863 | } |
| 3864 | } |
| 3865 | |
| 3866 | void QC_ApplicationWindow::showBlockActivated(const RS_Block *block) |
| 3867 | { |