Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 8614b3f..2c2965e 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp @@ -83,3 +83,4 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f ) syncing(FALSE), - inSearch(FALSE) + inSearch(FALSE), + alarmCounter(0) { @@ -616,2 +617,3 @@ void DateBook::appMessage(const QCString& msg, const QByteArray& data) Sound::soundAlarm(); + alarmCounter = 0; stopTimer = startTimer( 5000 ); @@ -685,10 +687,8 @@ void DateBook::timerEvent( QTimerEvent *e ) { - static int stop = 0; - if ( stop < 10 ) { + if ( alarmCounter < 10 ) { + alarmCounter++; Sound::soundAlarm(); - stop++; - } else { - stop = 0; - killTimer( e->timerId() ); } + else + killTimer( e->timerId() ); } |