summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtHistoryWindow.cpp5
-rw-r--r--Swift/QtUI/QtHistoryWindow.h1
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);