-rw-r--r-- | korganizer/mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 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,2 +224,3 @@ void MainWindow::showMaximized () if ( ! globalFlagBlockStartup ) + if ( mClosed ) mView->goToday(); @@ -226,2 +228,3 @@ void MainWindow::showMaximized () 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(); |