diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-03 13:17:51 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-03 13:17:51 (GMT) |
commit | 40dc0541e60549cc2db83005f45b51f93d42cc00 (patch) | |
tree | a197714d94fd3681802555e0783e6df694d7d6cc /Swift/QtUI | |
parent | fbeef036efeabe1218490f5a7659d8779350af7c (diff) | |
download | swift-contrib-40dc0541e60549cc2db83005f45b51f93d42cc00.zip swift-contrib-40dc0541e60549cc2db83005f45b51f93d42cc00.tar.bz2 |
Added message type logging. Fixed handling new messages.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.cpp | 5 | ||||
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/QtHistoryWindow.cpp b/Swift/QtUI/QtHistoryWindow.cpp index 122655a..50fd66e 100644 --- a/Swift/QtUI/QtHistoryWindow.cpp +++ b/Swift/QtUI/QtHistoryWindow.cpp @@ -89,8 +89,11 @@ void QtHistoryWindow::addMessage(const std::string &message, const std::string & void QtHistoryWindow::handleSomethingSelectedChanged(RosterItem* item) { - conversation_->resetView(); onSelectedContactChanged(item); } +void QtHistoryWindow::resetConversationView() { + conversation_->resetView(); +} + } diff --git a/Swift/QtUI/QtHistoryWindow.h b/Swift/QtUI/QtHistoryWindow.h index 965abf7..279657d 100644 --- a/Swift/QtUI/QtHistoryWindow.h +++ b/Swift/QtUI/QtHistoryWindow.h @@ -22,6 +22,7 @@ namespace Swift { void activate(); void setRosterModel(Roster*); void addMessage(const std::string &message, const std::string &senderName, bool senderIsSelf, const std::string& avatarPath, const boost::posix_time::ptime& time); + void resetConversationView(); private: virtual void closeEvent(QCloseEvent* event); |