forked from qt-creator/qt-creator
CMake: Update button labels on dialog asking to import CMake changes
Change-Id: I5a4b0f192b30b7104ee7da160bcbf269f3f59bb3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -734,8 +734,9 @@ void BuildDirManager::checkConfiguration()
|
||||
QPointer<QMessageBox> box = new QMessageBox(Core::ICore::mainWindow());
|
||||
box->setText(tr("CMake configuration has changed on disk."));
|
||||
box->setInformativeText(tr("The CMakeCache.txt file has changed: %1").arg(table));
|
||||
box->setStandardButtons(QMessageBox::Discard | QMessageBox::Apply);
|
||||
box->setDefaultButton(QMessageBox::Discard);
|
||||
auto *defaultButton = box->addButton(tr("Overwrite Changes in CMake"), QMessageBox::RejectRole);
|
||||
box->addButton(tr("Apply Changes to Project"), QMessageBox::AcceptRole);
|
||||
box->setDefaultButton(defaultButton);
|
||||
|
||||
int ret = box->exec();
|
||||
if (ret == QMessageBox::Apply)
|
||||
|
||||
Reference in New Issue
Block a user