-rw-r--r-- | korganizer/kojournalview.cpp | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp index 51ae0a0..7a96aa5 100644 --- a/korganizer/kojournalview.cpp +++ b/korganizer/kojournalview.cpp | |||
@@ -120,7 +120,6 @@ void KOJournalView::updateView() | |||
120 | } | 120 | } |
121 | void KOJournalView::checkModified() | 121 | void KOJournalView::checkModified() |
122 | { | 122 | { |
123 | qDebug("checkmod "); | ||
124 | flushView(); | 123 | flushView(); |
125 | } | 124 | } |
126 | void KOJournalView::flushView() | 125 | void KOJournalView::flushView() |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index fb6d6ec..23537a6 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1835,10 +1835,8 @@ void MainWindow::saveOnClose() | |||
1835 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; | 1835 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; |
1836 | } | 1836 | } |
1837 | #endif | 1837 | #endif |
1838 | if ( mView->viewManager()->journalView() ) | 1838 | |
1839 | mView->viewManager()->journalView()->checkModified(); | 1839 | save(); |
1840 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | ||
1841 | save(); | ||
1842 | mView->writeSettings(); | 1840 | mView->writeSettings(); |
1843 | } | 1841 | } |
1844 | void MainWindow::slotModifiedChanged( bool changed ) | 1842 | void MainWindow::slotModifiedChanged( bool changed ) |