[vlc-devel] commit: Qt: views behavior corrections (Jakob Leben )
git version control
git at videolan.org
Thu Jan 28 09:00:33 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Thu Jan 28 08:57:00 2010 +0100| [88b4c402e279e9999c845cf69cab2665c2d31fda] | committer: Jakob Leben
Qt: views behavior corrections
Only respond to input item change if in icon view.
Update location bar according to current view.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88b4c402e279e9999c845cf69cab2665c2d31fda
---
.../gui/qt4/components/playlist/standardpanel.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index dbb19cb..3a47850 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -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;
More information about the vlc-devel
mailing list