diff -r 7cbcb2896f0e -r a642906a277a contactwidgethsplugin/contactwidgeths/src/commlauncherwidget.cpp --- a/contactwidgethsplugin/contactwidgeths/src/commlauncherwidget.cpp Tue Jul 06 14:05:47 2010 +0300 +++ b/contactwidgethsplugin/contactwidgeths/src/commlauncherwidget.cpp Wed Aug 18 09:39:00 2010 +0300 @@ -113,7 +113,11 @@ CommLauncherWidget::~CommLauncherWidget() { // Deleting request cancels all pending requests - delete mRequest; + if (mRequest) { + delete mRequest; + mRequest = NULL; + } + } /*! @@ -518,17 +522,14 @@ */ void CommLauncherWidget::keyPressEvent(QKeyEvent *event) { + qDebug() << "keyPressEvent event=" << event->key(); if (event->key() == Qt::Key_Yes) { // Call key initializes a call makeCall(); event->accept(); - } else if (event->key() == Qt::Key_No || event->key() == Qt::Key_Select) { - // End key and Select key close the communication launcher and - // forward the key event to HbPopup - close(); - HbPopup::keyPressEvent(event); } else { - HbPopup::keyPressEvent(event); + close(); + //HbPopup::keyPressEvent(event); } } @@ -549,3 +550,4 @@ return width; } +