Summary: | KNotes crashes when switching between notes | ||
---|---|---|---|
Product: | [Applications] kontact | Reporter: | Lukáš Tinkl <lukas> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Lukáš Tinkl
2004-02-08 11:55:55 UTC
CVS commit by lukas: cvs -f diff -kk -bp -u -r1.65 -r1.65.4.1 knotesapp.cpp | patch -p0 -R doesn't crash anymore (this should be forward ported to HEAD) CCMAIL: bo@sonofthor.dk, montel@kde.org, 74558-done@bugs.kde.org M +1 -3 knotesapp.cpp 1.65.4.2 --- kdepim/knotes/knotesapp.cpp #1.65.4.1:1.65.4.2 @@ -481,6 +481,4 @@ void KNotesApp::saveConfig() void KNotesApp::saveNotes() { - ICalFormat format; - QString file = KGlobal::dirs()->saveLocation( "appdata" ) + "notes.ics"; QString backup = file + "~"; @@ -492,5 +490,5 @@ void KNotesApp::saveNotes() KMessageBox::error(0, i18n("<qt>Unable to save the notes backup to <b>%1</b>! Check that there is sufficient disk space.</qt>") .arg( backup ) ); - else if ( !m_calendar.save( file, &format ) ) + else if ( !m_calendar.save( file, new ICalFormat() ) ) KMessageBox::error(0, i18n("<qt>Unable to save the notes to <b>%1</b>! Check that there is sufficient disk space.<br>" "There should be a backup in <b>%2</b> though.</qt>") |