summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/main.cpp6
-rw-r--r--korganizer/mainwindow.cpp6
-rw-r--r--korganizer/mainwindow.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/korganizer/main.cpp b/korganizer/main.cpp
index 7f9b5c6..16186c0 100644
--- a/korganizer/main.cpp
+++ b/korganizer/main.cpp
@@ -4,2 +4,3 @@
#include <qpe/qpeapplication.h>
+#include <qcopchannel_qws.h>
#include <qpe/global.h>
@@ -81,2 +82,4 @@ int main( int argc, char **argv )
#ifndef DESKTOP_VERSION
+ QCopChannel* c1 = new QCopChannel("QPE/Application/datebook",&m, "channel" ) ;
+ QObject::connect( c1, SIGNAL (received ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& )));
QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& )));
@@ -98,2 +101,5 @@ int main( int argc, char **argv )
a.exec();
+#ifndef DESKTOP_VERSION
+ delete c1;
+#endif
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 2d17986..3c16458 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -132,3 +132,2 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
#endif
- mServerSocket = 0;
mClosed = false;
@@ -281,6 +280,4 @@ MainWindow::~MainWindow()
//save toolbar location
- delete mServerSocket;
delete mCalendar;
- delete KOPrefs::instance();
- delete KIncidenceFormatter::instance();
+ delete mSyncManager;
@@ -484,3 +481,2 @@ void MainWindow::initActions()
}
- connect ( syncMenu, SIGNAL( activated ( int ) ), this, SLOT (slotSyncMenu( int ) ) );
connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) );
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index ee7bd87..e3383ed 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -94,4 +94,2 @@ class MainWindow : public QMainWindow
KSyncManager* mSyncManager;
- //QTimer* mTimerCommandSocket;
- KServerSocket * mServerSocket;
bool mClosed;