author | zautrix <zautrix> | 2004-10-05 08:32:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-05 08:32:25 (UTC) |
commit | 701cd3c2b2b713c12797f5bda24c35d3a7889539 (patch) (side-by-side diff) | |
tree | 56d07b2f4a050fbc839ab6435b2266e8a52a08ba /korganizer/mainwindow.cpp | |
parent | ad859d26b813101adab963f50e694961702561d9 (diff) | |
download | kdepimpi-701cd3c2b2b713c12797f5bda24c35d3a7889539.zip kdepimpi-701cd3c2b2b713c12797f5bda24c35d3a7889539.tar.gz kdepimpi-701cd3c2b2b713c12797f5bda24c35d3a7889539.tar.bz2 |
warning dialog fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 43ee2d7..7b666d1 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -143,9 +143,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : //mView->setMaximumSize( splash->size() ); //mView->resize( splash->size() ); //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); mView->readSettings(); - bool oldOpened = false; bool newFile = false; if( !QFile::exists( defaultFileName() ) ) { QFileInfo finfo ( defaultFileName() ); QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); @@ -169,10 +168,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : newFile = true; } QTime neededSaveTime = QDateTime::currentDateTime().time(); - if ( ! oldOpened ) - mView->openCalendar( defaultFileName() ); + mView->openCalendar( defaultFileName() ); int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); qDebug("KO: Calendar loading time: %d ms",msNeeded ); if ( KOPrefs::instance()->mLanguageChanged ) { |