Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index c81d4d1..ec05a95 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -286,4 +286,6 @@ void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) { | |||
286 | */ | 286 | */ |
287 | void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) { | 287 | void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) { |
288 | if (!item ) | ||
289 | return; | ||
288 | 290 | ||
289 | QPopupMenu *menu = new QPopupMenu(); | 291 | QPopupMenu *menu = new QPopupMenu(); |
@@ -343,7 +345,7 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin | |||
343 | if ( it != list.end() ) { | 345 | if ( it != list.end() ) { |
344 | qWarning("Searching id %d %s", it.key(), it.data().latin1() ); | 346 | qWarning("Searching id %d %s", it.key(), it.data().latin1() ); |
345 | popup = m_popHelper.find( it.key(), | 347 | popup = m_popHelper.find( it.key() /*1*/, |
346 | service->services(), | 348 | service->services(), |
347 | service->parent() ); | 349 | (BTDeviceItem*)service->parent() ); |
348 | }else { | 350 | }else { |
349 | qWarning("Empty"); | 351 | qWarning("Empty"); |
@@ -360,15 +362,16 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin | |||
360 | 362 | ||
361 | ret = popup->exec( point ); | 363 | ret = popup->exec( point ); |
362 | 364 | qWarning("returned from exec() "); | |
363 | if ( ret == -1 ) | 365 | if ( ret == -1 ) |
364 | delete popup; | 366 | ; |
365 | else if ( ret == test1 ) | 367 | else if ( ret == test1 ) |
366 | delete popup; | 368 | ; |
367 | else if ( ret == con ) | 369 | else if ( ret == con ) |
368 | delete popup; | 370 | ; |
369 | else if ( ret == del ) { | 371 | else if ( ret == del ) { |
370 | // take item first? -zecke | 372 | // take item first? -zecke |
371 | delete item; | 373 | delete item; |
372 | } | 374 | } |
375 | delete popup; | ||
373 | } | 376 | } |
374 | delete menu; | 377 | delete menu; |