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

List:       kde-commits
Subject:    branches/KDE/4.3/kdeplasma-addons/applets/leavenote
From:       Christian Weilbach <christian () whiletaker ! homeip ! net>
Date:       2009-10-16 2:33:59
Message-ID: 1255660439.381475.18952.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1035856 by weilbach:

Only increment pointer when text is not empty and therefore only when message is actually being sent.


 M  +2 -2      leavenote.cpp  


--- branches/KDE/4.3/kdeplasma-addons/applets/leavenote/leavenote.cpp #1035855:1035856
@@ -179,11 +179,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