diff options
Diffstat (limited to 'src/filetree.cpp')
| -rw-r--r-- | src/filetree.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/filetree.cpp b/src/filetree.cpp index 19f2555a..2f13db44 100644 --- a/src/filetree.cpp +++ b/src/filetree.cpp @@ -604,6 +604,12 @@ bool FileTree::showShellMenu(QPoint pos) itor = menus.emplace(item->originID(), mw).first; } + if (!QFile::exists(item->realPath())) { + log::error("{}", + tr("File '%1' does not exist, you may need to refresh.") + .arg(item->realPath())); + } + itor->second.addFile(item->realPath()); ++totalFiles; @@ -641,6 +647,12 @@ bool FileTree::showShellMenu(QPoint pos) continue; } + if (!QFile::exists(QString::fromStdWString(fullPath))) { + log::error("{}", + tr("File '%1' does not exist, you may need to refresh.") + .arg(QString::fromStdWString(fullPath))); + } + itor->second.addFile(QString::fromStdWString(fullPath)); } } |
