diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-06-04 21:43:37 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-06-04 21:43:37 (GMT) |
commit | b3208697addc0492f4ae1f76c75a8810c20e701a (patch) | |
tree | e40a6d04ebafa9212ba10c61b72ea7a67d3f1e2f /Swift/QtUI/QtLoginWindow.cpp | |
parent | a9f7ecee77546875c85381af1dad8a723eb41546 (diff) | |
download | swift-contrib-b3208697addc0492f4ae1f76c75a8810c20e701a.zip swift-contrib-b3208697addc0492f4ae1f76c75a8810c20e701a.tar.bz2 |
Allow roster show/hide in netbook mode.
Resolves: #450
Diffstat (limited to 'Swift/QtUI/QtLoginWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index a18b161..66ac2db 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -19,6 +19,7 @@ #include <QToolButton> #include <QLabel> #include <QMenuBar> +#include <qdebug.h> #include "Swift/Controllers/UIEvents/UIEventStream.h" #include "Swift/Controllers/UIEvents/RequestXMLConsoleUIEvent.h" @@ -317,13 +318,13 @@ void QtLoginWindow::setMessage(const String& message) { } void QtLoginWindow::bringToFront() { - if (isHidden()) { - showNormal(); - raise(); - activateWindow(); + if (!isVisible()) { + window()->showNormal(); + window()->raise(); + window()->activateWindow(); } else { - hide(); + window()->hide(); } } |