Skip to content
Snippets Groups Projects
Commit abf4b3a0 authored by Marcus Hoffmann's avatar Marcus Hoffmann
Browse files

InputBar: use QFileInfo::exists()

Suggested by:

Clazy: Use the static QFileInfo::exists() instead. It's documented to be faster.
parent 5441ea88
No related branches found
No related tags found
No related merge requests found
......@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment