Add missing parent for messagebox and other popups
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window. This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
This commit is contained in:
@@ -759,7 +759,7 @@ void DlgPreferencesImp::applyChanges()
|
||||
void DlgPreferencesImp::restartIfRequired()
|
||||
{
|
||||
if (restartRequired) {
|
||||
QMessageBox restartBox;
|
||||
QMessageBox restartBox(parentWidget()); // current window likely already closed, cant parent to it
|
||||
|
||||
restartBox.setIcon(QMessageBox::Warning);
|
||||
restartBox.setWindowTitle(tr("Restart required"));
|
||||
|
||||
Reference in New Issue
Block a user