Works around a problem in Qt/Mac with mixed modal/non-modal dialogs.

Which leads to non-modal dialog getting incorrectly covered by the modal
one.

Task-number: QTCREATORBUG-5406
Change-Id: I1abd3051b9b849ecb5ee36316a0ab481ebcc754a
Reviewed-on: http://codereview.qt.nokia.com/1527
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Eike Ziller
2011-07-12 15:06:57 +02:00
parent ebcd81136b
commit 281fa2c013

View File

@@ -486,7 +486,7 @@ void QtOptionsPageWidget::showDebuggingBuildLog(const QTreeWidgetItem *currentIt
const int currentItemIndex = indexForTreeItem(currentItem);
if (currentItemIndex < 0)
return;
BuildLogDialog *dialog = new BuildLogDialog(this);
BuildLogDialog *dialog = new BuildLogDialog(this->window());
dialog->setWindowTitle(tr("Debugging Helper Build Log for '%1'").arg(currentItem->text(0)));
dialog->setText(currentItem->data(0, BuildLogRole).toString());
dialog->show();