summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp
index 67cae1c..e57cdef 100644
--- a/libopie2/opiecore/device/odevice.cpp
+++ b/libopie2/opiecore/device/odevice.cpp
@@ -646,2 +646,3 @@ void ODevice::reloadButtonMapping()
{
+ if(!d->m_buttons)
initButtons();
@@ -649,4 +650,3 @@ void ODevice::reloadButtonMapping()
if(!d->m_initializedButtonQcop) {
- QCopChannel *chan = new QCopChannel("QPE/System", this, "ODevice button channel");
- connect(chan,SIGNAL(received(const QCString&,const QByteArray&)),
+ connect(qApp,SIGNAL(systemMessageSignal(const QCString&,const QByteArray&)),
this,SLOT(systemMessage(const QCString&,const QByteArray&)));