MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / onFileDeleted

Method onFileDeleted

src/plugins/codeeditor/gui/workspacewidget.cpp:972–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970}
971
972void 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
995void WorkspaceWidgetPrivate::onFileModified(const QString &fileName)
996{

Callers

nothing calls this directly

Calls 6

addPathMethod · 0.45
containsMethod · 0.45
appendMethod · 0.45
openedFilesMethod · 0.45
removePathMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected