forked from qt-creator/qt-creator
Use QFileInfo::exists(...) which is faster that QFileInfo(..).exists
Change-Id: I0d2e61d84c74e60ef4f54074a4ca00f2d0835562 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Laurent Montel
parent
f976dc96fd
commit
5d27bc747b
@@ -327,7 +327,7 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
|
||||
bool openedSomething = false;
|
||||
foreach (const JsonWizard::GeneratorFile &f, files) {
|
||||
const Core::GeneratedFile &file = f.file;
|
||||
if (!QFileInfo(file.path()).exists()) {
|
||||
if (!QFileInfo::exists(file.path())) {
|
||||
errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"\"%1\" does not exist in the file system.")
|
||||
.arg(QDir::toNativeSeparators(file.path()));
|
||||
|
||||
Reference in New Issue
Block a user