summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/mainwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/unsupported/mail2/mainwindow.cpp b/noncore/unsupported/mail2/mainwindow.cpp
index a596653..0d09ec8 100644
--- a/noncore/unsupported/mail2/mainwindow.cpp
+++ b/noncore/unsupported/mail2/mainwindow.cpp
@@ -1,4 +1,6 @@
#include <qmessagebox.h>
#include <qaction.h>
+#include <qapplication.h>
+
#include <qpe/qcopenvelope_qws.h>
@@ -38,7 +40,9 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl)
// Added by Stefan Eilers to allow starting by addressbook..
#if !defined(QT_NO_COP)
- QCopChannel *addressChannel = new QCopChannel("QPE/Application/mail" , this );
- connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)),
- this, SLOT ( appMessage(const QCString &, const QByteArray &) ) );
+// QCopChannel *addressChannel = new QCopChannel("QPE/Application/mail" , this );
+// connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)),
+// this, SLOT ( appMessage(const QCString &, const QByteArray &) ) );
+ connect( qApp, SIGNAL( appMessage( const QCString&, const QByteArray& ) ),
+ this, SLOT( appMessage( const QCString&, const QByteArray& ) ) );
#endif
}