radioapp/radiouiengine/src/radioscannerengine_p.cpp
changeset 34 bc10a61bd7d3
parent 28 075425b8d9a4
child 37 451b2e1545b2
--- a/radioapp/radiouiengine/src/radioscannerengine_p.cpp	Fri Jun 11 13:38:32 2010 +0300
+++ b/radioapp/radiouiengine/src/radioscannerengine_p.cpp	Fri Jun 25 19:09:05 2010 +0300
@@ -61,7 +61,10 @@
     if ( reason == TuneReason::StationScanInitialization ) {
         mUiEngine.wrapper().startSeeking( Seek::Up, TuneReason::StationScan );
     } else if ( reason == TuneReason::StationScan ) {
-        if ( frequency > mLastFoundFrequency ) {
+        if ( frequency == mLastFoundFrequency ) {
+            // Stop scanning
+            q->emitStationFound( RadioStation() );
+        } else if ( frequency > mLastFoundFrequency ) {
             // Station has been found normally
             mLastFoundFrequency = frequency;
             addFrequencyAndReport( frequency );