equal
deleted
inserted
replaced
59 |
59 |
60 Q_Q( RadioScannerEngine ); |
60 Q_Q( RadioScannerEngine ); |
61 if ( reason == TuneReason::StationScanInitialization ) { |
61 if ( reason == TuneReason::StationScanInitialization ) { |
62 mUiEngine.wrapper().startSeeking( Seek::Up, TuneReason::StationScan ); |
62 mUiEngine.wrapper().startSeeking( Seek::Up, TuneReason::StationScan ); |
63 } else if ( reason == TuneReason::StationScan ) { |
63 } else if ( reason == TuneReason::StationScan ) { |
64 if ( frequency > mLastFoundFrequency ) { |
64 if ( frequency == mLastFoundFrequency ) { |
|
65 // Stop scanning |
|
66 q->emitStationFound( RadioStation() ); |
|
67 } else if ( frequency > mLastFoundFrequency ) { |
65 // Station has been found normally |
68 // Station has been found normally |
66 mLastFoundFrequency = frequency; |
69 mLastFoundFrequency = frequency; |
67 addFrequencyAndReport( frequency ); |
70 addFrequencyAndReport( frequency ); |
68 } else if ( frequency == mUiEngine.api().minFrequency() ) { |
71 } else if ( frequency == mUiEngine.api().minFrequency() ) { |
69 // Special case. A station has been found in the mininmum frequency |
72 // Special case. A station has been found in the mininmum frequency |