Commit 14543fcb authored by Ryan Adolf's avatar Ryan Adolf Committed by Weixuan Xiao
Browse files

Raise configuration window (MacOS bug)

## Summary

I've added a call to [`dialog->raise()`](https://doc.qt.io/qt-5/qwindow.html#raise) when launching the configuration dialog.

This is intended to fix a MacOS bug where the configuration window launches behind other open windows, but this call shouldn't harm operating systems as well.

BUG: 416050

## Test Plan

### Before:
Configuration dialog launches behind other open windows on MacOS.

### After:
Configuration dialog launches over other open windows on MacOS.
parent 5b314846
Pipeline #142425 passed with stage
in 1 minute and 33 seconds
......@@ -83,7 +83,9 @@ int main(int argc, char** argv)
dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")));
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
dialog->raise();
} else {
dialog->raise();
dialog->activateWindow();
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment