diff options
author | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:01:24 +0100 |
---|---|---|
committer | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:37:00 +0100 |
commit | abf4b3a0a3b438ecf040a837957e2b2936b1703d (patch) | |
tree | 205175f0a32b7cbbb98c6c9b69777f32c586f32c /src | |
parent | InputBar: remove unused imports (diff) | |
download | nheko-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')
-rw-r--r-- | src/timeline/InputBar.cpp | 2 |
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."); |