| 970 | } |
| 971 | |
| 972 | void WorkspaceWidgetPrivate::onFileDeleted(const QString &fileName) |
| 973 | { |
| 974 | if (QFile::exists(fileName)) { |
| 975 | Inotify::globalInstance()->addPath(fileName); |
| 976 | return onFileModified(fileName); |
| 977 | } |
| 978 | |
| 979 | if (removedFileList.contains(fileName)) |
| 980 | return; |
| 981 | |
| 982 | QStringList openedFiles; |
| 983 | for (auto tabWidget : tabWidgetList) |
| 984 | openedFiles.append(tabWidget->openedFiles()); |
| 985 | |
| 986 | if (!openedFiles.contains(fileName)) |
| 987 | return; |
| 988 | |
| 989 | Inotify::globalInstance()->removePath(fileName); |
| 990 | removedFileList << fileName; |
| 991 | if (q->isActiveWindow()) |
| 992 | fileCheckTimer.start(); |
| 993 | } |
| 994 | |
| 995 | void WorkspaceWidgetPrivate::onFileModified(const QString &fileName) |
| 996 | { |
nothing calls this directly
no test coverage detected