author | zautrix <zautrix> | 2005-07-01 18:39:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-01 18:39:59 (UTC) |
commit | c53efbe8f53f468d21d93f5e19b625d1a4beb242 (patch) (unidiff) | |
tree | f8fe2180733b6bd3514c02845cefa9f26e967e27 /korganizer | |
parent | 98d29d15275c4b8e9a3348742925f6e6d03f7a07 (diff) | |
download | kdepimpi-c53efbe8f53f468d21d93f5e19b625d1a4beb242.zip kdepimpi-c53efbe8f53f468d21d93f5e19b625d1a4beb242.tar.gz kdepimpi-c53efbe8f53f468d21d93f5e19b625d1a4beb242.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/calendarview.cpp | 15 | ||||
-rw-r--r-- | korganizer/calendarview.h | 1 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 7 |
5 files changed, 16 insertions, 10 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 70a1d2d..678143d 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -475,4 +475,5 @@ void CalendarView::init() | |||
475 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); | 475 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); |
476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); | 476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); |
477 | connect( mCalEditView, SIGNAL( checkCalendar() ),this, SLOT( checkFiles() )); | ||
477 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); | 478 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); |
478 | 479 | ||
@@ -682,8 +683,6 @@ void CalendarView::scrollBarValue(int val ) | |||
682 | 683 | ||
683 | } | 684 | } |
684 | 685 | void CalendarView::checkFiles() | |
685 | void CalendarView::checkAlarms() | ||
686 | { | 686 | { |
687 | |||
688 | QString message; | 687 | QString message; |
689 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 688 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
@@ -696,7 +695,13 @@ void CalendarView::checkAlarms() | |||
696 | } | 695 | } |
697 | if ( !message.isEmpty() ) { | 696 | if ( !message.isEmpty() ) { |
698 | message = KGlobal::formatMessage( i18n("The loading of one or more calendar failed:"),0 )+"\n" + message +KGlobal::formatMessage(i18n("You can try to reload the calendar in the Resource View!"),0); | 697 | message = KGlobal::formatMessage( i18n("Calendar(s) not loaded:"),0 )+"\n" + message +KGlobal::formatMessage(i18n("You can try to reload the calendar in the Resource View!"),0); |
699 | KMessageBox::error(this,message); | 698 | KMessageBox::error(this,message, i18n("Loding of calendar(s) failed")); |
700 | } | 699 | } |
700 | QTimer::singleShot( 2000, this, SLOT ( checkAlarms() )); | ||
701 | } | ||
702 | void CalendarView::checkAlarms() | ||
703 | { | ||
704 | |||
705 | |||
701 | KConfig *config = KOGlobals::config(); | 706 | KConfig *config = KOGlobals::config(); |
702 | config->setGroup( "AppRun" ); | 707 | config->setGroup( "AppRun" ); |
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index c9e9870..651194b 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -202,4 +202,5 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
202 | public slots: | 202 | public slots: |
203 | void checkAlarms(); | 203 | void checkAlarms(); |
204 | void checkFiles(); | ||
204 | void slotprintSelInc(); | 205 | void slotprintSelInc(); |
205 | void showNextAlarms(); | 206 | void showNextAlarms(); |
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 3cde103..20118aa 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -216,4 +216,5 @@ void KOCalEditView::infoCal( int id ) | |||
216 | emit needsUpdate(); | 216 | emit needsUpdate(); |
217 | QTimer::singleShot( 0, this, SLOT ( readConfig() ) ); | 217 | QTimer::singleShot( 0, this, SLOT ( readConfig() ) ); |
218 | QTimer::singleShot( 100, this, SIGNAL ( checkCalendar() ) ); | ||
218 | } | 219 | } |
219 | } | 220 | } |
@@ -380,4 +381,5 @@ void KOCalEditView::addCal() | |||
380 | } | 381 | } |
381 | addCalendar ( name, file ); | 382 | addCalendar ( name, file ); |
383 | QTimer::singleShot( 100, this, SIGNAL ( checkCalendar() ) ); | ||
382 | } | 384 | } |
383 | int KOCalEditView::addCalendar( QString name, QString file, bool ask ) | 385 | int KOCalEditView::addCalendar( QString name, QString file, bool ask ) |
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 54fe2c5..02107cf 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -234,4 +234,5 @@ class KOCalEditView : public QScrollView | |||
234 | void calendarAdded( int ); | 234 | void calendarAdded( int ); |
235 | void needsUpdate(); | 235 | void needsUpdate(); |
236 | void checkCalendar(); | ||
236 | 237 | ||
237 | private: | 238 | private: |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index b797d8c..501eed5 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -399,9 +399,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) : | |||
399 | mBRdisabled = false; | 399 | mBRdisabled = false; |
400 | //toggleBeamReceive(); | 400 | //toggleBeamReceive(); |
401 | int tiint= 3000; | 401 | |
402 | #ifndef DESKTOP_VERSION | 402 | QTimer::singleShot( 1000, mView, SLOT ( checkFiles() )); |
403 | tiint = 5000; | ||
404 | #endif | ||
405 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); | ||
406 | } | 403 | } |
407 | MainWindow::~MainWindow() | 404 | MainWindow::~MainWindow() |