[Pkg-owncloud-commits] [owncloud-client] 02/498: Activity view: Always add date

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit cd20208fdca32177b8cb276c9b10a93932376a32
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Thu Feb 19 10:45:29 2015 +0100

    Activity view: Always add date
    
    Fixes #2223
---
 src/gui/protocolwidget.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/gui/protocolwidget.cpp b/src/gui/protocolwidget.cpp
index 2440c36..baab619 100644
--- a/src/gui/protocolwidget.cpp
+++ b/src/gui/protocolwidget.cpp
@@ -161,17 +161,13 @@ QString ProtocolWidget::timeString(QDateTime dt, QLocale::FormatType format) con
 {
     QLocale loc = QLocale::system();
     QString timeStr;
-    QDate today = QDate::currentDate();
 
     if( format == QLocale::NarrowFormat ) {
-        if( dt.date().day() == today.day() ) {
-            timeStr = loc.toString(dt.time(), QLocale::NarrowFormat);
-        } else {
-            timeStr = loc.toString(dt, QLocale::NarrowFormat);
-        }
+        timeStr = loc.toString(dt, QLocale::NarrowFormat);
     } else {
         timeStr = loc.toString(dt, format);
     }
+
     return timeStr;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list