summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp7
-rw-r--r--korganizer/mainwindow.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index aa30b52..3bc6081 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -73,2 +73,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
+ mClosed = false;
//QString confFile = KStandardDirs::appDir() + "config/korganizerrc";
@@ -223,5 +224,7 @@ void MainWindow::showMaximized ()
if ( ! globalFlagBlockStartup )
- mView->goToday();
+ if ( mClosed )
+ mView->goToday();
#endif
QWidget::showMaximized () ;
+ mClosed = false;
}
@@ -234,2 +237,3 @@ void MainWindow::closeEvent( QCloseEvent* ce )
saveOnClose();
+ mClosed = true;
ce->accept();
@@ -245,2 +249,3 @@ void MainWindow::closeEvent( QCloseEvent* ce )
saveOnClose();
+ mClosed = true;
ce->accept();
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index 3e854cb..47a7a90 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -91,2 +91,3 @@ class MainWindow : public QMainWindow
private:
+ bool mClosed;
void saveOnClose();