-rw-r--r-- | noncore/net/opietooth/manager/scandialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp index e81b2ee..b0ffbb3 100644 --- a/noncore/net/opietooth/manager/scandialog.cpp +++ b/noncore/net/opietooth/manager/scandialog.cpp @@ -95,26 +95,26 @@ namespace OpieTooth { progressStat = 0; } // hack, make cleaner later - void ScanDialog::progressTimer(int maxSeconds) { + void ScanDialog::progressTimer() { progressStat++; - if (progressStat++ < maxSeconds) { - QTimer::singleShot( 1000, this, SLOT(progressTimer ) ); + if (progressStat++ < 20) { + QTimer::singleShot( 1000, this, SLOT(progressTimer() ) ); } } void ScanDialog::startSearch() { progress->setProgress(0); progressStat = 0; - progressTimer(20); + progressTimer(); // when finished, it emmite foundDevices() // checken ob initialisiert , qcop ans applet. localDevice->searchDevices(); - progress->setProgress(20); + } void ScanDialog::stopSearch() { |