forked from qt-creator/qt-creator
Introduce and use FileName::exists()
This can use the faster route through QFileInfo::exist now. Change-Id: Idb41b5d5185d7f02eacba498fb01f483d95e8d57 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -136,7 +136,7 @@ RunControl *IosDebugSupport::createDebugRunControl(IosRunConfiguration *runConfi
|
||||
Utils::FileName xcodeInfo = IosConfigurations::developerPath().parentDir()
|
||||
.appendPath(QLatin1String("Info.plist"));
|
||||
bool buggyLldb = false;
|
||||
if (xcodeInfo.toFileInfo().exists()) {
|
||||
if (xcodeInfo.exists()) {
|
||||
QSettings settings(xcodeInfo.toString(), QSettings::NativeFormat);
|
||||
QStringList version = settings.value(QLatin1String("CFBundleShortVersionString")).toString()
|
||||
.split(QLatin1Char('.'));
|
||||
@@ -147,7 +147,7 @@ RunControl *IosDebugSupport::createDebugRunControl(IosRunConfiguration *runConfi
|
||||
bundlePath.chop(4);
|
||||
Utils::FileName dsymPath = Utils::FileName::fromString(
|
||||
bundlePath.append(QLatin1String(".dSYM")));
|
||||
if (!dsymPath.toFileInfo().exists()) {
|
||||
if (!dsymPath.exists()) {
|
||||
if (buggyLldb)
|
||||
TaskHub::addTask(Task::Warning,
|
||||
tr("Debugging with Xcode 5.0.x can be unreliable without a dSYM. "
|
||||
|
||||
Reference in New Issue
Block a user