summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-03-11 19:38:46 (UTC)
committer zautrix <zautrix>2005-03-11 19:38:46 (UTC)
commitefa425789895481dd918a55af27895a7917d2a20 (patch) (side-by-side diff)
treecb6b6d495c17dd649fcc6387a41b2db2eef1d39d /korganizer
parent1166a4797a91cedd5002a3513d5028c5e86016f0 (diff)
downloadkdepimpi-efa425789895481dd918a55af27895a7917d2a20.zip
kdepimpi-efa425789895481dd918a55af27895a7917d2a20.tar.gz
kdepimpi-efa425789895481dd918a55af27895a7917d2a20.tar.bz2
better kopi export
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index f235705..3519985 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -624,4 +624,8 @@ void KOListView::writeToFile( bool iCal )
QListViewItem *item = mListView->firstChild ();
+ bool journal = iCal; // warn only for vCal
while ( item ) {
if ( item->isSelected() ) {
+ if ( !journal )
+ if ( ((KOListViewItem *)item)->data()->type() == "Journal")
+ journal = true;
delSel.append(((KOListViewItem *)item)->data());
@@ -632,2 +636,9 @@ void KOListView::writeToFile( bool iCal )
}
+ if ( !iCal && journal ) {
+ int result = KMessageBox::warningContinueCancel(this,
+ i18n("The journal entries can not be\nexported to a vCalendar file."),
+ i18n("Data Loss Warning"),i18n("Proceed"),i18n("Cancel"),
+ true);
+ if (result != KMessageBox::Continue) return;
+ }
if ( icount ) {
@@ -673,2 +684,3 @@ void KOListView::writeToFile( bool iCal )
} else {
+
VCalFormat format;