summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2011-04-29 13:06:17 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-04-30 15:56:35 (GMT)
commitd0c3cf701102d08afd253f515df74f33ffeed3cc (patch)
treefe906b3ca4c5a3dca794801fdf405b7a9d11a698 /Swift/QtUI
parent0c4887461ea3009f2f716ab0965f87471d5ac099 (diff)
downloadswift-d0c3cf701102d08afd253f515df74f33ffeed3cc.zip
swift-d0c3cf701102d08afd253f515df74f33ffeed3cc.tar.bz2
A better fix for the strange rendering performance issue in tabbed mode.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index e7cfa2b..326660f 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -433,7 +433,9 @@ void QtChatWindow::handleInputChanged() {
}
void QtChatWindow::show() {
- QWidget::show();
+ if (parentWidget() == NULL) {
+ QWidget::show();
+ }
emit windowOpening();
}