Commit 764ff17a authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: no need to set selected view by hand all the time

parent ebc99464
......@@ -136,7 +136,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
viewSelectionMapper->setMapping( viewActions[i], i );
CONNECT( viewActions[i], triggered(), viewSelectionMapper, map() );
}
viewActions[0]->setChecked( true );
viewActions[mainView->currentViewIndex()]->setChecked( true );
QMenu *viewMenu = new QMenu( viewButton );
viewMenu->addActions( actionGroup->actions() );
......@@ -249,8 +249,6 @@ void PlaylistWidget::changeView( const QModelIndex& index )
{
searchEdit->clear();
locationBar->setIndex( index );
int i = mainView->currentViewIndex();
viewActions[i]->setChecked(true);
}
void PlaylistWidget::clearPlaylist()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment