[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kate] kate/src/session: kate: use correct time order for quick open sessions
From:       Michal Humpula <michal.humpula () hudrydum ! cz>
Date:       2015-08-18 21:57:35
Message-ID: E1ZRosx-0000ac-VS () scm ! kde ! org
[Download RAW message or body]

Git commit 3dfb4f62afa8d1f3b3b7da82be2e184fa308269c by Michal Humpula.
Committed on 18/08/2015 at 21:56.
Pushed by michalhumpula into branch 'master'.

kate: use correct time order for quick open sessions

Time is sorted the other way around.

REVIEW: 124765

M  +1    -1    kate/src/session/katesession.cpp

http://commits.kde.org/kate/3dfb4f62afa8d1f3b3b7da82be2e184fa308269c

diff --git a/kate/src/session/katesession.cpp b/kate/src/session/katesession.cpp
index cf09c19..aa5a37e 100644
--- a/kate/src/session/katesession.cpp
+++ b/kate/src/session/katesession.cpp
@@ -125,6 +125,6 @@ bool KateSession::compareByName(const KateSession::Ptr &s1, const KateSession::P
 
 bool KateSession::compareByTimeDesc(const KateSession::Ptr &s1, const KateSession::Ptr &s2)
 {
-    return s1->timestamp() < s2->timestamp();
+    return s1->timestamp() > s2->timestamp();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic