summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp6
1 files changed, 3 insertions, 3 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
@@ -641,17 +641,17 @@ const ODeviceButton *ODevice::buttonForKeycode ( ushort code )
641 } 641 }
642 return 0; 642 return 0;
643} 643}
644 644
645void ODevice::reloadButtonMapping() 645void ODevice::reloadButtonMapping()
646{ 646{
647 initButtons(); 647 if(!d->m_buttons)
648 initButtons();
648 649
649 if(!d->m_initializedButtonQcop) { 650 if(!d->m_initializedButtonQcop) {
650 QCopChannel *chan = new QCopChannel("QPE/System", this, "ODevice button channel"); 651 connect(qApp,SIGNAL(systemMessageSignal(const QCString&,const QByteArray&)),
651 connect(chan,SIGNAL(received(const QCString&,const QByteArray&)),
652 this,SLOT(systemMessage(const QCString&,const QByteArray&))); 652 this,SLOT(systemMessage(const QCString&,const QByteArray&)));
653 d->m_initializedButtonQcop = true; 653 d->m_initializedButtonQcop = true;
654 } 654 }
655 655
656 Config cfg ( "ButtonSettings" ); 656 Config cfg ( "ButtonSettings" );
657 657