-rw-r--r-- | korganizer/kofilterview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 7ce3f1f..6a6fff9 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -367,3 +367,3 @@ void KOCalEditView::addCal() bool tryagain = true; - QString name, file; + QString name, file = KGlobalSettings::calendarDir()+"newCal.ics"; while ( tryagain ) { @@ -388,3 +388,3 @@ void KOCalEditView::addCal() tryagain = true; - file = ""; + file = KGlobalSettings::calendarDir()+"newCal.ics"; break; @@ -393,2 +393,6 @@ void KOCalEditView::addCal() } + QFileInfo fi ( file ); + if ( fi.isDir() ) { + tryagain = true; + } } |