All pastes #52397 Raw Edit

Something

public text v1 · immutable
#52397 ·published 2006-04-30 16:37 UTC
rendered paste body

void KBluetoothPairingWizard::advanceScan()
{
    if( ( hcitool && hcitool->isRunning() ) || ( sdptool && sdptool->isRunning() ) )
    {
        if(!progressDialog)
        {
            progressDialog=new KProgressDialog(this, 0, i18n("Searching"), i18n("Please wait while scanning bluetooth devices") );
            progressDialog->setAllowCancel( false );
            progressDialog->progressBar()->setTotalSteps( 0 );
            progressDialog->show();
        }
        progressDialog->progressBar()->advance(2);
    }
    else
    {
        disconnect(scanTimer, 0, 0, 0);
        scanTimer->stop();
>>>>>>> progressDialog->close();
        delete progressDialog;
        progressDialog=0;
    }
}






Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1500162368 (LWP 32207)]
[KCrash handler]
#5  0x080531ab in QWidget::close (this=0x0) at qwidget.h:848
#6  0x08050d0b in KBluetoothPairingWizard::advanceScan (this=0x80d6cc8)
    at kbluetoothpairingwizard.cpp:122
#7  0x08052d4b in KBluetoothPairingWizard::qt_invoke (this=0x80d6cc8, _id=62, 
    _o=0xaf8dd7fc) at kbluetoothpairingwizard.moc:112
#8  0xa717554b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#9  0xa7175fdc in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0xa75092ae in QTimer::timeout () from /usr/lib/libqt-mt.so.3
#11 0xa719a4a1 in QTimer::event () from /usr/lib/libqt-mt.so.3
#12 0xa710b87a in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#13 0xa710ba76 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#14 0xa78a002e in KApplication::notify () from /usr/lib/libkdecore.so.4
#15 0xa709d001 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#16 0xa70fd305 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#17 0xa70b0d2a in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#18 0xa7124255 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#19 0xa712417a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#20 0xa710a38d in QApplication::exec () from /usr/lib/libqt-mt.so.3
#21 0x0804fb97 in main (argc=1, argv=0xaf8ddfa4) at main.cpp:80