summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-10-07 07:55:09 (GMT)
committerSwift Review <review@swift.im>2014-10-07 08:42:56 (GMT)
commit113da29e2e29d24d863749d4d40e11f95e4f757d (patch)
treebdf4f5321d275a1f1926bc7d6a08ca5cb366db12
parent10785a85347e0cca62e6029097baec7c4d7dc0d5 (diff)
downloadswift-113da29e2e29d24d863749d4d40e11f95e4f757d.zip
swift-113da29e2e29d24d863749d4d40e11f95e4f757d.tar.bz2
Fix QLayout related warning.
QVBoxLayout was initialized with a widget which automatically tries to make the new layout the main layout of the widget. However, this is not intended. This bug was introduced in cc379dc. Test-Information: Before a warning "QLayout: Attempting to add QLayout..." was printed to stdout when joining a MUC; now this warning is gone. Change-Id: Ie680b188e108a3d825fb98947f2829d3c12955f7
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 3491d3c..6500ba4 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -80,7 +80,7 @@ QtChatWindow::QtChatWindow(const QString &contact, QtChatTheme* theme, UIEventSt
layout->setContentsMargins(0,0,0,0);
layout->setSpacing(2);
- alertLayout_ = new QVBoxLayout(this);
+ alertLayout_ = new QVBoxLayout();
layout->addLayout(alertLayout_);
subjectLayout_ = new QBoxLayout(QBoxLayout::LeftToRight);