From 94e818dc822a68e546a6c96ebf08c39b7aa3eb3d Mon Sep 17 00:00:00 2001
From: Tobias Hunger
Did you work with this project on another machine or " "using a different settings path before?
" "Do you still want to load the settings file \"%2\"?
") - .arg(Core::Constants::IDE_DISPLAY_NAME) + .arg(d->m_applicationDisplayName) .arg(path.toUserOutput()); result.defaultButton = QMessageBox::No; result.escapeButton = QMessageBox::No; @@ -596,6 +595,11 @@ void SettingsAccessor::setDisplayName(const QString &dn) d->m_displayName = dn; } +void SettingsAccessor::setApplicationDisplayName(const QString &dn) +{ + d->m_applicationDisplayName = dn; +} + /* Will always return the default name first (if applicable) */ FileNameList SettingsAccessor::settingsFiles(const QString &suffix) const { @@ -721,7 +725,7 @@ QVariantMap SettingsAccessor::readSharedSettings(QWidget *parent) const "The version of your .shared file is not " "supported by %1. " "Do you want to try loading it anyway?") - .arg(Core::Constants::IDE_DISPLAY_NAME), + .arg(d->m_applicationDisplayName), QMessageBox::Yes | QMessageBox::No, parent); msgBox.setDefaultButton(QMessageBox::No); diff --git a/src/plugins/projectexplorer/settingsaccessor.h b/src/plugins/projectexplorer/settingsaccessor.h index 65652c27a0..d01826081c 100644 --- a/src/plugins/projectexplorer/settingsaccessor.h +++ b/src/plugins/projectexplorer/settingsaccessor.h @@ -112,6 +112,7 @@ public: protected: void setSettingsId(const QByteArray &id); void setDisplayName(const QString &dn); + void setApplicationDisplayName(const QString &dn); QVariantMap readFile(const Utils::FileName &path) const; QVariantMap upgradeSettings(const QVariantMap &data) const; diff --git a/src/plugins/projectexplorer/userfileaccessor.cpp b/src/plugins/projectexplorer/userfileaccessor.cpp index 69d6342337..2ec9f875de 100644 --- a/src/plugins/projectexplorer/userfileaccessor.cpp +++ b/src/plugins/projectexplorer/userfileaccessor.cpp @@ -42,10 +42,6 @@ #include