diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/sessionwidget.cpp --- a/qtmobility/examples/bearermonitor/sessionwidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/sessionwidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -68,6 +68,10 @@ this, SLOT(closeSession())); connect(stopSessionButton, SIGNAL(clicked()), this, SLOT(stopSession())); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + connect(deleteSessionButton, SIGNAL(clicked()), + this, SLOT(deleteSession())); +#endif } SessionWidget::~SessionWidget() @@ -75,6 +79,13 @@ delete session; } +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +void SessionWidget::deleteSession() +{ + delete this; +} +#endif + void SessionWidget::updateSession() { updateSessionState(session->state());