summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp10
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
@@ -98,7 +98,7 @@ namespace OpieTooth {
// 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() ) );
}
@@ -111,3 +111,3 @@ namespace OpieTooth {
- progressTimer(20);
+ progressTimer();
// when finished, it emmite foundDevices()
@@ -115,3 +115,3 @@ namespace OpieTooth {
localDevice->searchDevices();
- progress->setProgress(20);
+
}