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

List:       kde-commits
Subject:    kdegames/konquest
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2004-07-11 9:44:19
Message-ID: 20040711094419.02F91E77 () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Fix the fix, col 3 is a double


  M +6 -0      fleetdlg.cc   1.6


--- kdegames/konquest/fleetdlg.cc  #1.5:1.6
@@ -21,4 +21,10 @@ int FleetDlgListViewItem::compare(QListV
                 else return compare(i, 0, true);
         }
+        else if (col == 3)
+        {
+                if (text(col).toDouble() > i -> text(col).toDouble()) return 1;
+                else if (text(col).toDouble() < i -> text(col).toDouble()) return -1;
+                else return compare(i, 0, true);
+        }
         else
         {


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

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