summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-10 22:53:13 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-10 22:53:13 (GMT)
commitbb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a (patch)
tree0754a2d7ca040aba3932b66fc9236117562d6b32 /Swift/QtUI
parent995dc5b96429473761ff0a60982f0501cfa6ad6b (diff)
downloadswift-contrib-bb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a.zip
swift-contrib-bb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a.tar.bz2
Fix two segfaults on signout/signin.
Connections that don't go away when the slot is destroyed. Resolves: #310
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtMainWindowFactory.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Swift/QtUI/QtMainWindowFactory.cpp b/Swift/QtUI/QtMainWindowFactory.cpp
index f58cca7..12e3532 100644
--- a/Swift/QtUI/QtMainWindowFactory.cpp
+++ b/Swift/QtUI/QtMainWindowFactory.cpp
@@ -15,9 +15,7 @@ QtMainWindowFactory::QtMainWindowFactory(QtTreeWidgetFactory *treeWidgetFactory)
}
MainWindow* QtMainWindowFactory::createMainWindow(UIEventStream* eventStream) {
- if (!lastWindow_) {
- lastWindow_ = new QtMainWindow(eventStream, treeWidgetFactory_);
- }
+ lastWindow_ = new QtMainWindow(eventStream, treeWidgetFactory_);
return lastWindow_;
}