summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-05-24 22:30:39 (UTC)
committer zautrix <zautrix>2005-05-24 22:30:39 (UTC)
commitc0ca8beceaa7a366a2d74a82504cad19f4ccd642 (patch) (side-by-side diff)
tree80d7934f39d856801c2491d735455cea1b119e8b /korganizer
parenta3a535e57c53071eb15aa034472d402d619ca84d (diff)
downloadkdepimpi-c0ca8beceaa7a366a2d74a82504cad19f4ccd642.zip
kdepimpi-c0ca8beceaa7a366a2d74a82504cad19f4ccd642.tar.gz
kdepimpi-c0ca8beceaa7a366a2d74a82504cad19f4ccd642.tar.bz2
todo fix
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp6
-rw-r--r--korganizer/korganizer.pro10
-rw-r--r--korganizer/kotodoview.h1
-rw-r--r--korganizer/koviewmanager.cpp5
4 files changed, 17 insertions, 5 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 904bbe2..a8ad467 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1657,10 +1657,12 @@ bool CalendarView::openCalendar(QString filename, bool merge)
return false;
}
globalFlagBlockAgenda = 1;
- if (!merge) mCalendar->close();
-
+ if (!merge) {
+ mCalendar->close();
+ mTodoList->clearList();
+ }
mStorage->setFileName( filename );
if ( mStorage->load() ) {
if ( merge ) ;//setModified( true );
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro
index d88c300..32ad10a 100644
--- a/korganizer/korganizer.pro
+++ b/korganizer/korganizer.pro
@@ -55,19 +55,25 @@ LIBS += ../bin/microkabc.lib
LIBS += ../libical/lib/ical.lib
LIBS += ../libical/lib/icalss.lib
#LIBS += atls.lib
QMAKE_LINK += /NODEFAULTLIB:LIBC
-#QMAKE_LINK += /NODEFAULTLIB:MSVCRT
-#QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib
+QMAKE_LINK += /NODEFAULTLIB:MSVCRT
+QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib
OBJECTS_DIR = obj/win
MOC_DIR = moc/win
#olimport section
#blabla: {
+debug: {
+LIBS += mfc71ud.lib
+}
+release: {
LIBS += mfc71u.lib
+}
DEFINES += _OL_IMPORT_
HEADERS += ../outport/msoutl9.h \
koimportoldialog.h
+
SOURCES += ../outport/msoutl9.cpp \
koimportoldialog.cpp
#}
#olimport section end
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index d368513..1ffc34a 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -138,8 +138,9 @@ class KOTodoView : public KOrg::BaseView
/** Create a popup menu to set categories */
QPopupMenu *getCategoryPopupMenu (KOTodoViewItem *todoItem);
void setNavigator( DateNavigator* nav ) {mNavigator = nav;}
QString getWhatsThisText(QPoint p);
+ void clearList() {mTodoListView->clear(); }
public slots:
void updateView();
void updateConfig();
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index 2e5a943..fb4de37 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -830,6 +830,9 @@ void KOViewManager::addView(KOrg::BaseView *view)
}
void KOViewManager::setDocumentId( const QString &id )
{
- if (mTodoView) mTodoView->setDocumentId( id );
+ if (mTodoView) {
+ mTodoView->clearList();
+ mTodoView->setDocumentId( id );
+ }
}