-rw-r--r-- | korganizer/koimportoldialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/koimportoldialog.cpp b/korganizer/koimportoldialog.cpp index c0bde0d..cc13395 100644 --- a/korganizer/koimportoldialog.cpp +++ b/korganizer/koimportoldialog.cpp | |||
@@ -68,19 +68,19 @@ QDateTime mDdate2Qdtr( DATE dt) | |||
68 | QDateTime qdt (QDate(st.wYear, st.wMonth,st.wDay ),QTime( st.wHour, st.wMinute,st.wSecond ) ); | 68 | QDateTime qdt (QDate(st.wYear, st.wMonth,st.wDay ),QTime( st.wHour, st.wMinute,st.wSecond ) ); |
69 | return qdt; | 69 | return qdt; |
70 | } | 70 | } |
71 | 71 | ||
72 | class OLEListViewItem : public QCheckListItem | 72 | class OLEListViewItem : public QCheckListItem |
73 | { | 73 | { |
74 | public: | 74 | public: |
75 | OLEListViewItem( QListView *parent, QString text ) : | 75 | OLEListViewItem( QListView *parent, QString text ) : |
76 | QCheckListItem( parent, text, QCheckListItem::CheckBox ) { ; }; | 76 | QCheckListItem( parent, text, QCheckListItem::CheckBox ) { mData = 0; }; |
77 | OLEListViewItem( QListViewItem *after, QString text ) : | 77 | OLEListViewItem( QListViewItem *after, QString text ) : |
78 | QCheckListItem( after, text, QCheckListItem::CheckBox ) { ; }; | 78 | QCheckListItem( after, text, QCheckListItem::CheckBox ) { mData = 0; }; |
79 | ~OLEListViewItem() {}; | 79 | ~OLEListViewItem() {}; |
80 | void setData( DWORD data ) {mData= data; }; | 80 | void setData( DWORD data ) {mData= data; }; |
81 | DWORD data() { return mData ;}; | 81 | DWORD data() { return mData ;}; |
82 | private: | 82 | private: |
83 | DWORD mData; | 83 | DWORD mData; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | KOImportOLdialog::KOImportOLdialog( const QString &caption, | 86 | KOImportOLdialog::KOImportOLdialog( const QString &caption, |
@@ -187,17 +187,17 @@ void KOImportOLdialog::addFolder(OLEListViewItem* iParent, LPDISPATCH dispParent | |||
187 | } | 187 | } |
188 | } | 188 | } |
189 | 189 | ||
190 | void KOImportOLdialog::slotApply() | 190 | void KOImportOLdialog::slotApply() |
191 | { | 191 | { |
192 | importedItems = 0; | 192 | importedItems = 0; |
193 | OLEListViewItem* child = (OLEListViewItem*) mListView->firstChild(); | 193 | OLEListViewItem* child = (OLEListViewItem*) mListView->firstChild(); |
194 | while ( child ) { | 194 | while ( child ) { |
195 | if ( child->isOn() ) | 195 | if ( child->isOn()&& child->data() ) |
196 | readCalendarData( child->data() ); | 196 | readCalendarData( child->data() ); |
197 | child = (OLEListViewItem*) child->itemBelow(); | 197 | child = (OLEListViewItem*) child->itemBelow(); |
198 | } | 198 | } |
199 | QString mes = i18n("Importing complete.\n\n%1 items imported.").arg( importedItems); | 199 | QString mes = i18n("Importing complete.\n\n%1 items imported.").arg( importedItems); |
200 | KMessageBox::information(this,mes); | 200 | KMessageBox::information(this,mes); |
201 | } | 201 | } |
202 | void KOImportOLdialog::readCalendarData( DWORD folder ) | 202 | void KOImportOLdialog::readCalendarData( DWORD folder ) |
203 | { | 203 | { |