InputBar: use QFileInfo::exists()

Suggested by:

Clazy: Use the static QFileInfo::exists() instead. It's documented to be faster.
pull/833/head
Marcus Hoffmann 3 years ago
parent 5441ea8840
commit abf4b3a0a3
  1. 2
      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.");

Loading…
Cancel
Save