-rw-r--r-- | korganizer/journalentry.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp index 05bfd31..232ea58 100644 --- a/korganizer/journalentry.cpp +++ b/korganizer/journalentry.cpp @@ -191,10 +191,15 @@ void JournalEntry::setJournal(Journal *journal) { writeJournal(); mJournal = journal; + if ( journal->isReadOnly() ) + mTitle->setText(mJournal->summary()+" ("+i18n("readonly")+")"); + else mTitle->setText(mJournal->summary()); mEditor->setText(mJournal->description()); + mTitle->setReadOnly (journal->isReadOnly() ); + mEditor->setReadOnly ( journal->isReadOnly() ); int id = mJournal->calID(); QString calname = KOPrefs::instance()->getCalendar( id )->mName; mTitleLabel->setText( " (" + calname +")"); |