-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 | |||
@@ -73,2 +73,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | |||
73 | 73 | ||
74 | mClosed = false; | ||
74 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 75 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
@@ -223,5 +224,7 @@ void MainWindow::showMaximized () | |||
223 | if ( ! globalFlagBlockStartup ) | 224 | if ( ! globalFlagBlockStartup ) |
224 | mView->goToday(); | 225 | if ( mClosed ) |
226 | mView->goToday(); | ||
225 | #endif | 227 | #endif |
226 | QWidget::showMaximized () ; | 228 | QWidget::showMaximized () ; |
229 | mClosed = false; | ||
227 | } | 230 | } |
@@ -234,2 +237,3 @@ void MainWindow::closeEvent( QCloseEvent* ce ) | |||
234 | saveOnClose(); | 237 | saveOnClose(); |
238 | mClosed = true; | ||
235 | ce->accept(); | 239 | ce->accept(); |
@@ -245,2 +249,3 @@ void MainWindow::closeEvent( QCloseEvent* ce ) | |||
245 | saveOnClose(); | 249 | saveOnClose(); |
250 | mClosed = true; | ||
246 | ce->accept(); | 251 | 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 | |||
91 | private: | 91 | private: |
92 | bool mClosed; | ||
92 | void saveOnClose(); | 93 | void saveOnClose(); |