From kde-commits Fri Oct 16 02:33:59 2009 From: Christian Weilbach Date: Fri, 16 Oct 2009 02:33:59 +0000 To: kde-commits Subject: branches/KDE/4.3/kdeplasma-addons/applets/leavenote Message-Id: <1255660439.381475.18952.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125566045030315 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();