-rw-r--r-- | korganizer/journalentry.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp index 5fc3f2f..7f6f221 100644 --- a/korganizer/journalentry.cpp +++ b/korganizer/journalentry.cpp @@ -249,9 +249,11 @@ void JournalEntry::fillCalendar( int setToID ) mCalendarBox->setCurrentItem( std ); } void JournalEntry::toggleShowJournal() -{ +{ + if ( mEditor->text().isEmpty() && mTitle->currentText ().isEmpty() ) + return; if (!mEditor->text().isEmpty() || !mTitle->currentText ().isEmpty()) flushEntry(); if ( showOnlyMode ) emit showJournalOnly( 0 ); |