forked from qt-creator/qt-creator
Set parent for options dialog where appropriate.
Otherwise the options dialog might appear behind the current "dialog" (for example the "new" wizards). Also, take ICore::dialogParent as default. Change-Id: I4578e269db5763842a942549a45ec8cdd6b28b5d Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -69,8 +69,11 @@ static void showGraphicalShellError(QWidget *parent, const QString &app, const Q
|
||||
QAbstractButton *settingsButton = mbox.addButton(Core::ICore::msgShowOptionsDialog(),
|
||||
QMessageBox::ActionRole);
|
||||
mbox.exec();
|
||||
if (mbox.clickedButton() == settingsButton)
|
||||
ICore::showOptionsDialog(Constants::SETTINGS_CATEGORY_CORE, Constants::SETTINGS_ID_ENVIRONMENT);
|
||||
if (mbox.clickedButton() == settingsButton) {
|
||||
ICore::showOptionsDialog(Constants::SETTINGS_CATEGORY_CORE,
|
||||
Constants::SETTINGS_ID_ENVIRONMENT,
|
||||
parent);
|
||||
}
|
||||
}
|
||||
|
||||
void FileUtils::showInGraphicalShell(QWidget *parent, const QString &pathIn)
|
||||
|
||||
Reference in New Issue
Block a user