From 4b3a1174015e28e247b91a60164bcf37f12db583 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 6 Oct 2015 19:02:38 -0300 Subject: Ask the Preferences Widget to show and be visible The 'show' call only makes the dialog visible, but if it's covered by any other window that's not from *this* program it could still be hidden in some OSes. the call to raise() asks the window manager to make the widget to be on top of the widget stack. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8f2f7cd23..317980d24 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -589,6 +589,7 @@ void MainWindow::showProfile() void MainWindow::on_actionPreferences_triggered() { PreferencesDialog::instance()->show(); + PreferencesDialog::instance()->raise(); } void MainWindow::on_actionQuit_triggered() -- cgit v1.2.3-70-g09d2