Commit 88b4c402 authored by Jakob Leben's avatar Jakob Leben

Qt: views behavior corrections

Only respond to input item change if in icon view.
Update location bar according to current view.
parent cdd26d2f
......@@ -355,6 +355,7 @@ void StandardPLPanel::toggleView()
if( iconView == NULL )
createIconView();
locationBar->setIndex( iconView->rootIndex() );
treeView->hide();
iconView->show();
currentView = iconView;
......@@ -364,6 +365,7 @@ void StandardPLPanel::toggleView()
if( treeView == NULL )
createTreeView();
locationBar->setIndex( treeView->rootIndex() );
iconView->hide();
treeView->show();
currentView = treeView;
......@@ -395,6 +397,8 @@ void StandardPLPanel::activate( const QModelIndex &index )
void StandardPLPanel::handleInputChange( input_thread_t *p_input_thread )
{
if( currentView != iconView ) return;
input_item_t *p_input_item = input_GetItem( p_input_thread );
if( !p_input_item ) return;
......
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