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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/pager
From:       Davide Bettio <davbet () aliceposta ! it>
Date:       2008-11-13 23:11:56
Message-ID: 1226617916.028534.22839.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 884007 by bettio:

Don't display "0 windows:".


 M  +4 -1      pager.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #884006:884007
@@ -1099,7 +1099,10 @@
         }
     }
 
-    subtext.prepend(i18np("One window:", "%1 windows:", taskCounter));
+    if (taskCounter){
+        subtext.prepend(i18np("One window:", "%1 windows:", taskCounter));
+    }
+
     if (taskCounter - displayedTaskCounter > 0){
         subtext.append("<br>&bull; <i>" + i18np("and 1 other", "and %1 others", \
taskCounter - displayedTaskCounter) + "</i>");  }


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

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