Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 10 |
1 files changed, 7 insertions, 3 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 | |||
@@ -55,4 +55,6 @@ | |||
55 | #include <opie/otodoaccessvcal.h> | 55 | #include <opie/otodoaccessvcal.h> |
56 | 56 | ||
57 | #include <opie/oapplicationfactory.h> | ||
58 | |||
57 | #include "quickeditimpl.h" | 59 | #include "quickeditimpl.h" |
58 | #include "todotemplatemanager.h" | 60 | #include "todotemplatemanager.h" |
@@ -64,9 +66,10 @@ | |||
64 | #include "mainwindow.h" | 66 | #include "mainwindow.h" |
65 | 67 | ||
68 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) | ||
66 | 69 | ||
67 | using namespace Todo; | 70 | using namespace Todo; |
68 | 71 | ||
69 | MainWindow::MainWindow( QWidget* parent, | 72 | MainWindow::MainWindow( QWidget* parent, |
70 | const char* name ) | 73 | const char* name, WFlags ) |
71 | : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) | 74 | : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) |
72 | { | 75 | { |
@@ -351,4 +354,5 @@ TodoShow* MainWindow::currentShow() { | |||
351 | } | 354 | } |
352 | void MainWindow::slotReload() { | 355 | void MainWindow::slotReload() { |
356 | m_syncing = FALSE; | ||
353 | m_todoMgr.reload(); | 357 | m_todoMgr.reload(); |
354 | currentView()->updateView( ); | 358 | currentView()->updateView( ); |
@@ -605,5 +609,5 @@ void MainWindow::receiveFile( const QString& filename ) { | |||
605 | for ( it = list.begin(); it != list.end(); ++it ) | 609 | for ( it = list.begin(); it != list.end(); ++it ) |
606 | m_todoMgr.add( (*it) ); | 610 | m_todoMgr.add( (*it) ); |
607 | 611 | ||
608 | currentView()->updateView(); | 612 | currentView()->updateView(); |
609 | } | 613 | } |
@@ -612,5 +616,5 @@ void MainWindow::receiveFile( const QString& filename ) { | |||
612 | 616 | ||
613 | void MainWindow::slotFlush() { | 617 | void MainWindow::slotFlush() { |
614 | m_syncing = FALSE; | 618 | m_syncing = TRUE; |
615 | m_todoMgr.save(); | 619 | m_todoMgr.save(); |
616 | } | 620 | } |