author | zautrix <zautrix> | 2005-11-26 12:38:58 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-11-26 12:38:58 (UTC) |
commit | 854d4a0c686962cd73ac7418b5fbf4b2d73adab7 (patch) (unidiff) | |
tree | 864a872db7d3787bac151da8257ae132b04ec5e3 /korganizer | |
parent | 85bd9f05564e566b296c949ce6e214ebdbf573ac (diff) | |
download | kdepimpi-854d4a0c686962cd73ac7418b5fbf4b2d73adab7.zip kdepimpi-854d4a0c686962cd73ac7418b5fbf4b2d73adab7.tar.gz kdepimpi-854d4a0c686962cd73ac7418b5fbf4b2d73adab7.tar.bz2 |
sync
-rw-r--r-- | korganizer/calendarview.cpp | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 9571f16..8d024c1 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -6,3 +6,3 @@ | |||
6 | 6 | ||
7 | Copyright (c) 1997, 1998, 1999 | 7 | Copyright (c) savecale1997, 1998, 1999 |
8 | Preston Brown (preton.brown@yale.edu) | 8 | Preston Brown (preton.brown@yale.edu) |
@@ -781,2 +781,4 @@ void CalendarView::setScrollBarStep(int val ) | |||
781 | mDateScrollBar->setLineStep ( val ); | 781 | mDateScrollBar->setLineStep ( val ); |
782 | #else | ||
783 | Q_UNUSED( val ); | ||
782 | #endif | 784 | #endif |
@@ -807,2 +809,4 @@ void CalendarView::scrollBarValue(int val ) | |||
807 | flag_blockScrollBar = false; | 809 | flag_blockScrollBar = false; |
810 | #else | ||
811 | Q_UNUSED( val ); | ||
808 | #endif | 812 | #endif |
@@ -1604,2 +1608,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1604 | { | 1608 | { |
1609 | |||
1605 | bool syncOK = true; | 1610 | bool syncOK = true; |
@@ -1734,3 +1739,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1734 | inR = inL->clone(); | 1739 | inR = inL->clone(); |
1735 | inR->setCalID( calID ); | 1740 | inR->setCalID_block( calID ); |
1736 | inR->setTempSyncStat( SYNC_TEMPSTATE_INITIAL ); | 1741 | inR->setTempSyncStat( SYNC_TEMPSTATE_INITIAL ); |
@@ -1749,3 +1754,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1749 | inL = inR->clone(); | 1754 | inL = inR->clone(); |
1750 | inL->setCalID( calID ); | 1755 | inL->setCalID_block( calID ); |
1751 | if ( mSyncManager->syncWithDesktop() ) | 1756 | if ( mSyncManager->syncWithDesktop() ) |
@@ -1780,3 +1785,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1780 | 1785 | ||
1781 | inL->setCalID( 0 );// add to default cal | 1786 | inL->setCalID_block( 0 );// add to default cal |
1782 | local->addIncidence( inL ); | 1787 | local->addIncidence( inL ); |
@@ -1790,3 +1795,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1790 | inL->setIDStr( ":" ); | 1795 | inL->setIDStr( ":" ); |
1791 | inL->setCalID( 0 );// add to default cal | 1796 | inL->setCalID_block( 0 );// add to default cal |
1792 | local->addIncidence( inL ); | 1797 | local->addIncidence( inL ); |
@@ -1848,3 +1853,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1848 | inR->setTempSyncStat( SYNC_TEMPSTATE_INITIAL ); | 1853 | inR->setTempSyncStat( SYNC_TEMPSTATE_INITIAL ); |
1849 | inR->setCalID( 0 );// add to default cal | 1854 | inR->setCalID_block( 0 );// add to default cal |
1850 | remote->addIncidence( inR ); | 1855 | remote->addIncidence( inR ); |
@@ -1863,3 +1868,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
1863 | inR->setIDStr( ":" ); | 1868 | inR->setIDStr( ":" ); |
1864 | inR->setCalID( 0 );// add to default cal | 1869 | inR->setCalID_block( 0 );// add to default cal |
1865 | remote->addIncidence( inR ); | 1870 | remote->addIncidence( inR ); |
@@ -2451,3 +2456,5 @@ void CalendarView::mergeFileResource( QString fn ,QString resource ) | |||
2451 | if ( resource == "ALL" ) { | 2456 | if ( resource == "ALL" ) { |
2457 | mCalendar->setAllCalendarEnabled( true ); | ||
2452 | mergeFile( fn ); | 2458 | mergeFile( fn ); |
2459 | restoreCalendarSettings(); | ||
2453 | return; | 2460 | return; |
@@ -2599,4 +2606,8 @@ bool CalendarView::saveCalendarResource(QString filename, QString resource) | |||
2599 | { | 2606 | { |
2600 | if ( resource == "ALL" ) | 2607 | if ( resource == "ALL" ) { |
2601 | return saveCalendar( filename ); | 2608 | mCalendar->setAllCalendarEnabled( true ); |
2609 | bool retval = saveCalendar( filename ); | ||
2610 | restoreCalendarSettings(); | ||
2611 | return retval; | ||
2612 | } | ||
2602 | int exclusiveResource = KOPrefs::instance()->getFuzzyCalendarID( resource ); | 2613 | int exclusiveResource = KOPrefs::instance()->getFuzzyCalendarID( resource ); |