From c2165f4e14bc2f7ab2ef19f5c35497dde5e87a0d Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Oct 2004 02:17:06 +0000 Subject: import ir fixes --- (limited to 'korganizer/mainwindow.cpp') diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 3c16458..a69a0bd 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -334,13 +334,14 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) //QString datamess; //qDebug("message "); qDebug("KO: QCOP message received: %s ", cmsg.data() ); - - if ( cmsg == "-writeFile" ) { - // I made from the "-writeFile" an "-writeAlarm" - mView->viewManager()->showWhatsNextView(); - mCalendar->checkAlarmForIncidence( 0, true); - showMaximized(); - raise(); + + if ( cmsg == "setDocument(QString)" ) { + QDataStream stream( data, IO_ReadOnly ); + QString fileName; + stream >> fileName; + qDebug("filename %s ", fileName.latin1()); + KOPrefs::instance()->mLastSyncedLocalFile = fileName ; + mSyncManager->slotSyncMenu( 1002 ); return; } -- cgit v0.9.0.2