diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-22 21:51:36 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-22 21:51:36 (GMT) |
commit | 2e86507010e1f8754049a3bb37ce9041bb19d870 (patch) | |
tree | ecd3b8ed0b33c12bf123f4042af41fbc2d245e4b /Swift/QtUI | |
parent | 0c377fa93ffd8538da9e71ddc71d4e8c07600a22 (diff) | |
download | swift-contrib-2e86507010e1f8754049a3bb37ce9041bb19d870.zip swift-contrib-2e86507010e1f8754049a3bb37ce9041bb19d870.tar.bz2 |
Fixing up the unit tests again. Oops.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtMainWindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp index ebafaff..618a887 100644 --- a/Swift/QtUI/QtMainWindow.cpp +++ b/Swift/QtUI/QtMainWindow.cpp @@ -5,6 +5,8 @@ #include "QtSwiftUtil.h" #include "Roster/QtTreeWidgetFactory.h" #include "Roster/QtTreeWidget.h" +#include "Swift/Controllers/UIEvents/AddContactUIEvent.h" + #include <QBoxLayout> #include <QComboBox> @@ -89,7 +91,8 @@ void QtMainWindow::handleSignOutAction() { } void QtMainWindow::handleAddContactDialogComplete(const JID& contact, const QString& name) { - onAddContactRequest(contact, Q2PSTRING(name)); + boost::shared_ptr<UIEvent> event(new AddContactUIEvent(contact, Q2PSTRING(name))); + uiEventStream_->send(event); } TreeWidget* QtMainWindow::getTreeWidget() { |