diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-09-15 21:49:41 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-09-15 21:49:41 (GMT) |
commit | 9a02397822d7ef3dea95bc8821f14fb35d201b7b (patch) | |
tree | d31697c82cf876f7fa7f162c87b59abeb4786076 /Swift/QtUI | |
parent | 30f65cc069715e570cc376e0181126e43047cebc (diff) | |
download | swift-9a02397822d7ef3dea95bc8821f14fb35d201b7b.zip swift-9a02397822d7ef3dea95bc8821f14fb35d201b7b.tar.bz2 |
Bring the tabs to front when a tabbed widget requests activation.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 8e6bea2..3d66e0a 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -57,8 +57,10 @@ void QtChatTabs::handleWantsToActivate() { Q_ASSERT(widget); Q_ASSERT(tabs_->indexOf(widget) >= 0); //Un-minimize and bring to front. - setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive); + setWindowState(windowState() & ~Qt::WindowMinimized); + setWindowState(windowState() | Qt::WindowActive); tabs_->setCurrentWidget(widget); + activateWindow(); } void QtChatTabs::handleTabClosing() { |