summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
authorzautrix <zautrix>2004-10-20 09:45:16 (UTC)
committer zautrix <zautrix>2004-10-20 09:45:16 (UTC)
commitb3662915cb2c966ed7b5c563b8e840ae5b82d4e6 (patch) (side-by-side diff)
treebc09d046e1d47fe94acb538af88458f716993dfc /korganizer/calendarview.cpp
parent40eaafc9e008dc004b6ebc65fae8d89c8883ee8b (diff)
downloadkdepimpi-b3662915cb2c966ed7b5c563b8e840ae5b82d4e6.zip
kdepimpi-b3662915cb2c966ed7b5c563b8e840ae5b82d4e6.tar.gz
kdepimpi-b3662915cb2c966ed7b5c563b8e840ae5b82d4e6.tar.bz2
fixed br for kopi
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 884c61a..0306e07 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1231,12 +1231,13 @@ void CalendarView::syncExternal( int mode )
qApp->processEvents();
CalendarLocal* calendar = new CalendarLocal();
calendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId);
bool syncOK = false;
bool loadSuccess = false;
PhoneFormat* phoneFormat = 0;
+ emit tempDisableBR(true);
#ifndef DESKTOP_VERSION
SharpFormat* sharpFormat = 0;
if ( mode == 0 ) { // sharp
sharpFormat = new SharpFormat () ;
loadSuccess = sharpFormat->load( calendar, mCalendar );
@@ -1246,14 +1247,16 @@ void CalendarView::syncExternal( int mode )
phoneFormat = new PhoneFormat (mCurrentSyncDevice,
mSyncManager->mPhoneDevice,
mSyncManager->mPhoneConnection,
mSyncManager->mPhoneModel);
loadSuccess = phoneFormat->load( calendar,mCalendar);
- } else
- return;
+ } else {
+ emit tempDisableBR(false);
+ return;
+ }
if ( loadSuccess ) {
getEventViewerDialog()->setSyncMode( true );
syncOK = synchronizeCalendar( mCalendar, calendar, mSyncManager->mSyncAlgoPrefs );
getEventViewerDialog()->setSyncMode( false );
qApp->processEvents();
if ( syncOK ) {
@@ -1300,12 +1303,13 @@ void CalendarView::syncExternal( int mode )
QMessageBox::information( 0, i18n("KO/Pi Import - ERROR"),
question, i18n("Ok")) ;
}
delete calendar;
updateView();
+ emit tempDisableBR(false);
return ;//syncOK;
}
bool CalendarView::importBday()
{