diff options
Diffstat (limited to 'Swift/QtUI/QtJoinMUCWindow.cpp')
| -rw-r--r-- | Swift/QtUI/QtJoinMUCWindow.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/Swift/QtUI/QtJoinMUCWindow.cpp b/Swift/QtUI/QtJoinMUCWindow.cpp index 7980a17..a44cdaf 100644 --- a/Swift/QtUI/QtJoinMUCWindow.cpp +++ b/Swift/QtUI/QtJoinMUCWindow.cpp @@ -6,10 +6,13 @@  #include "QtJoinMUCWindow.h"  #include "QtSwiftUtil.h" +#include <boost/smart_ptr/make_shared.hpp> +#include <Swift/Controllers/UIEvents/UIEventStream.h> +#include <Swift/Controllers/UIEvents/JoinMUCUIEvent.h>  namespace Swift { -QtJoinMUCWindow::QtJoinMUCWindow() { +QtJoinMUCWindow::QtJoinMUCWindow(UIEventStream* uiEventStream) : uiEventStream(uiEventStream) {  	ui.setupUi(this);  #if QT_VERSION >= 0x040700  	ui.room->setPlaceholderText(tr("someroom@rooms.example.com")); @@ -35,7 +38,7 @@ void QtJoinMUCWindow::handleJoin() {  	lastSetNick = Q2PSTRING(ui.nickName->text());  	JID room(Q2PSTRING(ui.room->text())); -	onJoinMUC(room, lastSetNick, ui.joinAutomatically->isChecked());  +	uiEventStream->send(boost::make_shared<JoinMUCUIEvent>(room, lastSetNick, ui.joinAutomatically->isChecked()));  	hide();  }  | 
 Swift