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

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/leavenote
From:       Christian Weilbach <christian () whiletaker ! homeip ! net>
Date:       2009-10-11 23:13:54
Message-ID: 1255302834.155300.15841.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1034100 by weilbach:

Only increment counter when the message is not empty and really being sent.


 M  +2 -2      leavenote.cpp  


--- trunk/KDE/kdeplasma-addons/applets/leavenote/leavenote.cpp #1034099:1034100
@@ -181,11 +181,11 @@
 
 void LeaveNote::slotSend()
 {
-    incrementMessageCount();
-
     if (mTextEdit->nativeWidget()->toPlainText().isEmpty())
         return;
 
+    incrementMessageCount();
+
     QString time = KGlobal::locale()->formatTime(KDateTime::currentLocalDateTime().time());
     QString title = i18nc("String + time", "Somebody has left a note at %1", time);
     QString msg = mTextEdit->text();
[prev in list] [next in list] [prev in thread] [next in thread] 

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