summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:01:24 +0100
committerMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:37:00 +0100
commitabf4b3a0a3b438ecf040a837957e2b2936b1703d (patch)
tree205175f0a32b7cbbb98c6c9b69777f32c586f32c /src/timeline/InputBar.cpp
parentInputBar: remove unused imports (diff)
downloadnheko-abf4b3a0a3b438ecf040a837957e2b2936b1703d.tar.xz
InputBar: use QFileInfo::exists()
Suggested by:

Clazy: Use the static QFileInfo::exists() instead. It's documented to be faster.
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 72ac3a32..6fd5c4f9 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -82,7 +82,7 @@ InputBar::insertMimeData(const QMimeData *md) } } - if (!path.isEmpty() && QFileInfo{path}.exists()) { + if (!path.isEmpty() && QFileInfo::exists(path)) { showPreview(*md, path, formats); } else { nhlog::ui()->warn("Clipboard does not contain any valid file paths.");