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:
@@ -386,7 +386,7 @@ static void saveQtVersions()
|
||||
data.insert(QString::fromLatin1(QTVERSION_DATA_KEY) + QString::number(count), tmp);
|
||||
++count;
|
||||
}
|
||||
m_writer->save(data, Core::ICore::mainWindow());
|
||||
m_writer->save(data, Core::ICore::dialogParent());
|
||||
}
|
||||
|
||||
// Executes qtchooser with arguments in a process and returns its output
|
||||
|
||||
Reference in New Issue
Block a user