summaryrefslogtreecommitdiffabout
path: root/korganizer/journalentry.cpp
Unidiff
Diffstat (limited to 'korganizer/journalentry.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/journalentry.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp
index 9e2c902..ca8d5f7 100644
--- a/korganizer/journalentry.cpp
+++ b/korganizer/journalentry.cpp
@@ -164,4 +164,4 @@ void JournalEntry::setDate(const QDate &date)
164 showOnlyMode = false; 164 showOnlyMode = false;
165 mDate = date;
166 writeJournal(); 165 writeJournal();
166 mDate = date;
167 int id = mCalendar->defaultCalendar(); 167 int id = mCalendar->defaultCalendar();
@@ -181,4 +181,9 @@ void JournalEntry::toggleShowJournal()
181 emit showJournalOnly( mJournal ); 181 emit showJournalOnly( mJournal );
182 //QTimer::singleShot( 0, this, SLOT( setVisibleOn() ) );
182 } 183 }
183} 184}
185void JournalEntry::setVisibleOn()
186{
187 visibleMode = true;
188}
184void JournalEntry::setShowOnly() 189void JournalEntry::setShowOnly()
@@ -186,4 +191,6 @@ void JournalEntry::setShowOnly()
186 showOnlyMode = true; 191 showOnlyMode = true;
187 mEditor->setFocus(); 192 if ( mTitle->text().isEmpty() )
188 visibleMode = true; 193 mTitle->setFocus();
194 else
195 mEditor->setFocus();
189} 196}