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
@@ -31,6 +31,7 @@
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QFileInfo>
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
|
||||
@@ -359,7 +360,7 @@ QString ConsoleProcess::defaultTerminalEmulator()
|
||||
{
|
||||
if (HostOsInfo::isMacHost()) {
|
||||
QString termCmd = QCoreApplication::applicationDirPath() + QLatin1String("/../Resources/scripts/openTerminal.command");
|
||||
if (QFile(termCmd).exists())
|
||||
if (QFileInfo::exists(termCmd))
|
||||
return termCmd.replace(QLatin1Char(' '), QLatin1String("\\ "));
|
||||
return QLatin1String("/usr/X11/bin/xterm");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user