summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp7
1 files changed, 6 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
@@ -71,6 +71,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
setFont( QFont("Arial"), 14 );
#endif
+ mClosed = false;
//QString confFile = KStandardDirs::appDir() + "config/korganizerrc";
QString confFile = locateLocal("config","korganizerrc");
QFileInfo finf ( confFile );
@@ -221,9 +222,11 @@ void MainWindow::showMaximized ()
{
#ifndef DESKTOP_VERSION
if ( ! globalFlagBlockStartup )
- mView->goToday();
+ if ( mClosed )
+ mView->goToday();
#endif
QWidget::showMaximized () ;
+ mClosed = false;
}
void MainWindow::closeEvent( QCloseEvent* ce )
{
@@ -232,6 +235,7 @@ void MainWindow::closeEvent( QCloseEvent* ce )
if ( ! KOPrefs::instance()->mAskForQuit ) {
saveOnClose();
+ mClosed = true;
ce->accept();
return;
@@ -243,6 +247,7 @@ void MainWindow::closeEvent( QCloseEvent* ce )
0, 0 ) ) {
case 0:
saveOnClose();
+ mClosed = true;
ce->accept();
break;
case 1: