mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
InputBar: use QFileInfo::exists()
Suggested by: Clazy: Use the static QFileInfo::exists() instead. It's documented to be faster.
This commit is contained in:
parent
5441ea8840
commit
abf4b3a0a3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
showPreview(*md, path, formats);
|
||||||
} else {
|
} else {
|
||||||
nhlog::ui()->warn("Clipboard does not contain any valid file paths.");
|
nhlog::ui()->warn("Clipboard does not contain any valid file paths.");
|
||||||
|
|
Loading…
Reference in a new issue