summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-06-15 21:29:57 (UTC)
committer harlekin <harlekin>2002-06-15 21:29:57 (UTC)
commite7712c9535a461c6f5f98e78b856af0bb9eca0c6 (patch) (side-by-side diff)
tree2cd21c2ad707dbf9461ccb2c5d1d13c63b6f7440
parente31f557a84055ce00f814fd44427f9b3584243f9 (diff)
downloadopie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.zip
opie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.tar.gz
opie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.tar.bz2
update
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
@@ -96,11 +96,11 @@ 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() ) );
}
}
@@ -109,11 +109,11 @@ namespace OpieTooth {
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() {