summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-10-06 19:02:38 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-07 07:57:09 +0100
commit4b3a1174015e28e247b91a60164bcf37f12db583 (patch)
tree5d900291131ae3db4d1cf3934ca477aa039e22be /qt-ui
parentd120755d15b633ee1fe962672ace1493a40e361e (diff)
downloadsubsurface-4b3a1174015e28e247b91a60164bcf37f12db583.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
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()