summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-02-09 02:46:30 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-18 17:23:47 -0500
commit7eae9b5dd4ea13029ff81630ac7a5307a70eab58 (patch)
tree83729938e65a127f01b97b9e0e2e433d49aca23e /src
parent7c2952b83c3aff216f2cd74523a24428ab4cf91c (diff)
localized warning when file doesn't exist for shell menu
Diffstat (limited to 'src')
-rw-r--r--src/filetree.cpp12
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));
}
}