-rw-r--r-- | korganizer/mainwindow.cpp | 7 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
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 @@ -72,4 +72,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : #endif + mClosed = false; //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; QString confFile = locateLocal("config","korganizerrc"); @@ -222,7 +223,9 @@ void MainWindow::showMaximized () #ifndef DESKTOP_VERSION if ( ! globalFlagBlockStartup ) - mView->goToday(); + if ( mClosed ) + mView->goToday(); #endif QWidget::showMaximized () ; + mClosed = false; } void MainWindow::closeEvent( QCloseEvent* ce ) @@ -233,4 +236,5 @@ void MainWindow::closeEvent( QCloseEvent* ce ) if ( ! KOPrefs::instance()->mAskForQuit ) { saveOnClose(); + mClosed = true; ce->accept(); return; @@ -244,4 +248,5 @@ void MainWindow::closeEvent( QCloseEvent* ce ) case 0: saveOnClose(); + mClosed = true; ce->accept(); break; diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 3e854cb..47a7a90 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h @@ -90,4 +90,5 @@ class MainWindow : public QMainWindow private: + bool mClosed; void saveOnClose(); int mCurrentSyncProfile; |