Diffstat (limited to 'korganizer/koeventeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeventeditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp index 0ff99a4..337db9b 100644 --- a/korganizer/koeventeditor.cpp +++ b/korganizer/koeventeditor.cpp | |||
@@ -332,13 +332,13 @@ void KOEventEditor::slotLoadTemplate() | |||
332 | 332 | ||
333 | QString fileName =locateLocal( "templates", "events" ); | 333 | QString fileName =locateLocal( "templates", "events" ); |
334 | QDir t_dir; | 334 | QDir t_dir; |
335 | if ( !t_dir.exists(fileName) ) | 335 | if ( !t_dir.exists(fileName) ) |
336 | t_dir.mkdir ( fileName ); | 336 | t_dir.mkdir ( fileName ); |
337 | fileName += "/event"; | 337 | fileName += "/event"; |
338 | fileName = KFileDialog::getSaveFileName( fileName , "Load Event template", this ); | 338 | fileName = KFileDialog::getOpenFileName( fileName , i18n("Load Event template"), this ); |
339 | if ( fileName.length() == 0 ) | 339 | if ( fileName.length() == 0 ) |
340 | return; | 340 | return; |
341 | CalendarLocal cal; | 341 | CalendarLocal cal; |
342 | ICalFormat format; | 342 | ICalFormat format; |
343 | if ( !format.load( &cal, fileName ) ) { | 343 | if ( !format.load( &cal, fileName ) ) { |
344 | KMessageBox::error( this, i18n("Error loading template file\n '%1'.") | 344 | KMessageBox::error( this, i18n("Error loading template file\n '%1'.") |
@@ -361,13 +361,13 @@ void KOEventEditor::slotSaveTemplate() | |||
361 | { | 361 | { |
362 | QString fileName =locateLocal( "templates", "events" ); | 362 | QString fileName =locateLocal( "templates", "events" ); |
363 | QDir t_dir; | 363 | QDir t_dir; |
364 | if ( !t_dir.exists(fileName) ) | 364 | if ( !t_dir.exists(fileName) ) |
365 | t_dir.mkdir ( fileName ); | 365 | t_dir.mkdir ( fileName ); |
366 | fileName += "/event"; | 366 | fileName += "/event"; |
367 | fileName = KFileDialog::getSaveFileName( fileName , "Save as Event template", this ); | 367 | fileName = KFileDialog::getSaveFileName( fileName , i18n("Save as Event template"), this ); |
368 | if ( fileName.length() > 0 ) | 368 | if ( fileName.length() > 0 ) |
369 | saveTemplate( fileName ); | 369 | saveTemplate( fileName ); |
370 | } | 370 | } |
371 | 371 | ||
372 | void KOEventEditor::saveTemplate( const QString &templateName ) | 372 | void KOEventEditor::saveTemplate( const QString &templateName ) |
373 | { | 373 | { |