radioapp/radiowidgets/src/radiostationcarousel.cpp
changeset 54 a8ba0c289b44
parent 51 bbebb0235466
child 57 21be958eb3ce
--- a/radioapp/radiowidgets/src/radiostationcarousel.cpp	Mon Sep 20 18:04:48 2010 +0300
+++ b/radioapp/radiowidgets/src/radiostationcarousel.cpp	Tue Oct 05 09:31:22 2010 +0300
@@ -74,6 +74,7 @@
     mMaxScrollPos( 0 ),
     mCurrentIndex( 0 ),
     mTargetIndex( -1 ),
+    mCurrentFrequency( 0 ),
     mIsCustomFreq( false ),
     mInfoTextType( CarouselInfoText::None ),
     mModel( NULL ),
@@ -267,6 +268,7 @@
             }
         } else {
             mItems[CenterItem]->setFrequency( frequency );
+            mCurrentFrequency = frequency;
         }
     }
 }
@@ -402,7 +404,7 @@
     mItems[CenterItem]->setSeekLayout( manualSeekActive );
     if ( !manualSeekActive ) {
         clearInfoText();
-        setFrequency( mUiEngine->currentFrequency(), TuneReason::Unspecified );
+        setFrequency( mCurrentFrequency, TuneReason::Unspecified );
     }
 }