diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 72ac3a3270ecc637b809aca898b9eb1618d14ed1..6fd5c4f999f2f93ea8840a34481287a4d4e3d1cd 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.");