[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:23:14 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=d12ffbd
The following commit has been merged in the master branch:
commit d12ffbd79d36d9e40753c6dfc80ab20bb12a018c
Author: Andrea Scarpino <andrea at archlinux.org>
Date: Tue Jan 29 22:59:04 2013 +0059
Show the first message time as chat starting time
BUG: 312603
FIXED-IN: 0.6
---
lib/chat-widget.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 78a232c..f831e27 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -1046,7 +1046,14 @@ void ChatWidget::initChatArea()
//set up anything related to 'self'
info.setOutgoingIconPath(d->channel->groupSelfContact()->avatarData().fileName);
- info.setTimeOpened(QDateTime::currentDateTime());
+
+ //set the message time
+ if (!d->channel->messageQueue().isEmpty()) {
+ info.setTimeOpened(d->channel->messageQueue().first().received());
+ } else {
+ info.setTimeOpened(QDateTime::currentDateTime());
+ }
+
info.setServiceIconImage(KIconLoader::global()->iconPath(d->account->iconName(), KIconLoader::Panel));
d->ui.chatArea->initialise(info);
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list