-rw-r--r-- | core/pim/todo/mainwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 6725951..ecb4e40 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -54,6 +54,8 @@ #include <opie/opimnotifymanager.h> #include <opie/otodoaccessvcal.h> +#include <opie/oapplicationfactory.h> + #include "quickeditimpl.h" #include "todotemplatemanager.h" #include "templateeditor.h" @@ -63,11 +65,12 @@ #include "todoeditor.h" #include "mainwindow.h" +OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) using namespace Todo; MainWindow::MainWindow( QWidget* parent, - const char* name ) + const char* name, WFlags ) : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) { m_syncing = false; @@ -350,6 +353,7 @@ TodoShow* MainWindow::currentShow() { return m_curShow; } void MainWindow::slotReload() { + m_syncing = FALSE; m_todoMgr.reload(); currentView()->updateView( ); raiseCurrentView(); @@ -611,7 +615,7 @@ void MainWindow::receiveFile( const QString& filename ) { } void MainWindow::slotFlush() { - m_syncing = FALSE; + m_syncing = TRUE; m_todoMgr.save(); } void MainWindow::slotShowDetails() { |