-rw-r--r-- | korganizer/mainwindow.cpp | 8 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 4b00062..d4fadcb 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -210,16 +210,24 @@ MainWindow::~MainWindow() | |||
210 | //save toolbar location | 210 | //save toolbar location |
211 | 211 | ||
212 | delete mCalendar; | 212 | delete mCalendar; |
213 | delete KOPrefs::instance(); | 213 | delete KOPrefs::instance(); |
214 | delete KIncidenceFormatter::instance(); | 214 | delete KIncidenceFormatter::instance(); |
215 | 215 | ||
216 | 216 | ||
217 | } | 217 | } |
218 | void MainWindow::showMaximized () | ||
219 | { | ||
220 | #ifndef DESKTOP_VERSION | ||
221 | if ( ! globalFlagBlockStartup ) | ||
222 | mView->goToday(); | ||
223 | #endif | ||
224 | QWidget::showMaximized () ; | ||
225 | } | ||
218 | void MainWindow::closeEvent( QCloseEvent* ce ) | 226 | void MainWindow::closeEvent( QCloseEvent* ce ) |
219 | { | 227 | { |
220 | 228 | ||
221 | 229 | ||
222 | 230 | ||
223 | if ( ! KOPrefs::instance()->mAskForQuit ) { | 231 | if ( ! KOPrefs::instance()->mAskForQuit ) { |
224 | saveOnClose(); | 232 | saveOnClose(); |
225 | ce->accept(); | 233 | ce->accept(); |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 1d87db0..3e854cb 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -26,16 +26,17 @@ using namespace KCal; | |||
26 | 26 | ||
27 | class MainWindow : public QMainWindow | 27 | class MainWindow : public QMainWindow |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | public: | 30 | public: |
31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
32 | ~MainWindow(); | 32 | ~MainWindow(); |
33 | public slots: | 33 | public slots: |
34 | virtual void showMaximized (); | ||
34 | void configureAgenda( int ); | 35 | void configureAgenda( int ); |
35 | void recieve( const QCString& msg, const QByteArray& data ); | 36 | void recieve( const QCString& msg, const QByteArray& data ); |
36 | static QString defaultFileName(); | 37 | static QString defaultFileName(); |
37 | static QString resourcePath(); | 38 | static QString resourcePath(); |
38 | protected slots: | 39 | protected slots: |
39 | void setCaptionToDates(); | 40 | void setCaptionToDates(); |
40 | int ringSync(); | 41 | int ringSync(); |
41 | void multiSync( bool askforPrefs = false ); | 42 | void multiSync( bool askforPrefs = false ); |