diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-05-13 19:37:33 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-05-13 19:38:14 (GMT) |
commit | 0b9db0c080dbfeef6d209544afcc120712ab445e (patch) | |
tree | 42ad56a07e0cf1d25523cfbe0c4d1c84f57c18a0 /Swift/QtUI/QtUIFactory.h | |
parent | 57c0d20400e162b90050e72702f65cad37c12ead (diff) | |
download | swift-contrib-0b9db0c080dbfeef6d209544afcc120712ab445e.zip swift-contrib-0b9db0c080dbfeef6d209544afcc120712ab445e.tar.bz2 |
Don't crash when chat windows are deleted.
Resolves: #879
Diffstat (limited to 'Swift/QtUI/QtUIFactory.h')
-rw-r--r-- | Swift/QtUI/QtUIFactory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtUIFactory.h b/Swift/QtUI/QtUIFactory.h index 828f1b4..a576ded 100644 --- a/Swift/QtUI/QtUIFactory.h +++ b/Swift/QtUI/QtUIFactory.h @@ -7,6 +7,7 @@ #pragma once #include <QObject> +#include <QPointer> #include <Swift/Controllers/UIInterfaces/UIFactory.h> @@ -42,7 +43,6 @@ namespace Swift { private slots: void handleLoginWindowGeometryChanged(); - void handleChatWindowDestroyed(QObject*); void handleChatWindowFontResized(int); private: @@ -53,7 +53,7 @@ namespace Swift { QtChatWindowFactory* chatWindowFactory; QtMainWindow* lastMainWindow; QtLoginWindow* loginWindow; - std::vector<QtChatWindow*> chatWindows; + std::vector<QPointer<QtChatWindow> > chatWindows; bool startMinimized; int chatFontSize; }; |