summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 68233e8..d8373a6 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -567,7 +567,6 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
if ( msg == "-newEvent" ) {
- mView->newEvent();
+ QTimer::singleShot( 0, mView, SLOT ( newEvent()));
}
if ( msg == "-newTodo" ) {
- mView->newTodo();
-
+ QTimer::singleShot( 0, mView, SLOT ( newTodo()));
}
@@ -589,3 +588,3 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
else if ( msg == "-ringSync" ) {
- mSyncManager->multiSync( false );
+ QTimer::singleShot( 0, this, SLOT (startMultiSync()));
}
@@ -621,3 +620,17 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
}
-
+void MainWindow::startMultiSync()
+{
+ QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!");
+ if ( QMessageBox::information( this, i18n("KDE-Pim Sync"),
+ question,
+ i18n("Yes"), i18n("No"),
+ 0, 0 ) != 0 ) {
+ setCaption(i18n("Aborted! Nothing synced!"));
+ return;
+ }
+ mSyncManager->multiSync( false );
+#ifndef DESKTOP_VERSION
+ QCopEnvelope e("QPE/Application/kapi", "doRingSync");
+#endif
+}
QPixmap MainWindow::loadPixmap( QString name )