author | zautrix <zautrix> | 2005-06-27 05:42:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-27 05:42:05 (UTC) |
commit | 16d3551a207f02679aeaeb943f00684db223934d (patch) (unidiff) | |
tree | 79e42304c0249c8ae78ad40ec7b88b0f42a839dd /korganizer | |
parent | fe17413ed808afb7b3e722e1f2ea9a5381a44955 (diff) | |
download | kdepimpi-16d3551a207f02679aeaeb943f00684db223934d.zip kdepimpi-16d3551a207f02679aeaeb943f00684db223934d.tar.gz kdepimpi-16d3551a207f02679aeaeb943f00684db223934d.tar.bz2 |
compile fix
-rw-r--r-- | korganizer/calendarview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 13cf69b..a62145a 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -1589,49 +1589,49 @@ void CalendarView::syncExternal( int mode ) | |||
1589 | topLevelWidget()->setCaption( i18n("Sync cancelled or failed.") ); | 1589 | topLevelWidget()->setCaption( i18n("Sync cancelled or failed.") ); |
1590 | } | 1590 | } |
1591 | setModified( true ); | 1591 | setModified( true ); |
1592 | } else { | 1592 | } else { |
1593 | QString question = i18n("Sorry, the database access\ncommand failed!\n\nNothing synced!\n") ; | 1593 | QString question = i18n("Sorry, the database access\ncommand failed!\n\nNothing synced!\n") ; |
1594 | QMessageBox::information( 0, i18n("KO/Pi Import - ERROR"), | 1594 | QMessageBox::information( 0, i18n("KO/Pi Import - ERROR"), |
1595 | question, i18n("Ok")) ; | 1595 | question, i18n("Ok")) ; |
1596 | 1596 | ||
1597 | } | 1597 | } |
1598 | delete calendar; | 1598 | delete calendar; |
1599 | updateView(); | 1599 | updateView(); |
1600 | emit tempDisableBR(false); | 1600 | emit tempDisableBR(false); |
1601 | return ;//syncOK; | 1601 | return ;//syncOK; |
1602 | 1602 | ||
1603 | } | 1603 | } |
1604 | 1604 | ||
1605 | bool CalendarView::importBday() | 1605 | bool CalendarView::importBday() |
1606 | { | 1606 | { |
1607 | #ifndef KORG_NOKABC | 1607 | #ifndef KORG_NOKABC |
1608 | 1608 | ||
1609 | #ifdef DESKTOP_VERSION | 1609 | #ifdef DESKTOP_VERSION |
1610 | int curCal = mCalendar->defaultCalendar(); | 1610 | int curCal = mCalendar->defaultCalendar(); |
1611 | int bd = mCalEditView->getBirtdayID(); | 1611 | int bd = mCalEditView->getBirtdayID(); |
1612 | if ( bd == 0 ) | 1612 | if ( bd == 0 ) |
1613 | return; | 1613 | return false; |
1614 | mCalendar->setDefaultCalendar( bd ); | 1614 | mCalendar->setDefaultCalendar( bd ); |
1615 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); | 1615 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); |
1616 | KABC::AddressBook::Iterator it; | 1616 | KABC::AddressBook::Iterator it; |
1617 | int count = 0; | 1617 | int count = 0; |
1618 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { | 1618 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { |
1619 | ++count; | 1619 | ++count; |
1620 | } | 1620 | } |
1621 | QProgressBar bar(count,0 ); | 1621 | QProgressBar bar(count,0 ); |
1622 | int w = 300; | 1622 | int w = 300; |
1623 | if ( QApplication::desktop()->width() < 320 ) | 1623 | if ( QApplication::desktop()->width() < 320 ) |
1624 | w = 220; | 1624 | w = 220; |
1625 | int h = bar.sizeHint().height() ; | 1625 | int h = bar.sizeHint().height() ; |
1626 | int dw = QApplication::desktop()->width(); | 1626 | int dw = QApplication::desktop()->width(); |
1627 | int dh = QApplication::desktop()->height(); | 1627 | int dh = QApplication::desktop()->height(); |
1628 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 1628 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
1629 | bar.show(); | 1629 | bar.show(); |
1630 | bar.setCaption (i18n("Reading addressbook - close to abort!") ); | 1630 | bar.setCaption (i18n("Reading addressbook - close to abort!") ); |
1631 | qApp->processEvents(); | 1631 | qApp->processEvents(); |
1632 | count = 0; | 1632 | count = 0; |
1633 | int addCount = 0; | 1633 | int addCount = 0; |
1634 | KCal::Attendee* a = 0; | 1634 | KCal::Attendee* a = 0; |
1635 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { | 1635 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { |
1636 | if ( ! bar.isVisible() ) | 1636 | if ( ! bar.isVisible() ) |
1637 | return false; | 1637 | return false; |