radioapp/radiowidgets/src/radiostationsview.cpp
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 33 11b6825f0862
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
   356     } else if ( mCurrentQuestion == ClearList ){
   356     } else if ( mCurrentQuestion == ClearList ){
   357         const bool favoriteMode = mFavoritesButton->isChecked();
   357         const bool favoriteMode = mFavoritesButton->isChecked();
   358         mModel->removeAll( favoriteMode ? RadioStationModel::RemoveFavorites : RadioStationModel::RemoveAll );
   358         mModel->removeAll( favoriteMode ? RadioStationModel::RemoveFavorites : RadioStationModel::RemoveAll );
   359         updateVisibilities();
   359         updateVisibilities();
   360     } else if ( mCurrentQuestion == DeleteStation ) {
   360     } else if ( mCurrentQuestion == DeleteStation ) {
   361         mModel->removeStation( mModel->currentStation() );
   361         mModel->removeStation( *mSelectedStation );
   362     }
   362     }
   363 
   363 
   364     mCurrentQuestion = NoQuestion;
   364     mCurrentQuestion = NoQuestion;
   365 }
   365 }
   366 
   366