forked from qt-creator/qt-creator
Use dialogParent() instead of mainWindow()
There are very few reasons to use mainWindow() directly. Especially for modal dialogs, using dialogParent() is important, since that guarantees the stacking order in case of other dialogs currently being open. Change-Id: I7ad2c23c5034b43195eb35cfe405932a7ea003e6 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
// in that. FailedToStart is the only actual failure.
|
||||
if (e == QProcess::FailedToStart) {
|
||||
QString msg = tr("Perf Process Failed to Start");
|
||||
QMessageBox::warning(Core::ICore::mainWindow(),
|
||||
QMessageBox::warning(Core::ICore::dialogParent(),
|
||||
msg, tr("Make sure that you are running a recent Linux kernel and "
|
||||
"that the \"perf\" utility is available."));
|
||||
reportFailure(msg);
|
||||
|
||||
Reference in New Issue
Block a user