[vlc-commits] Qt: correctly fallback to filename when empty tags

Jean-Baptiste Kempf git at videolan.org
Mon May 14 14:20:46 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 14 14:10:16 2012 +0200| [6acd0f4c54dcd69d029106c2465cba19d99ff24b] | committer: Jean-Baptiste Kempf

Qt: correctly fallback to filename when empty tags

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6acd0f4c54dcd69d029106c2465cba19d99ff24b
---

 modules/gui/qt4/input_manager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 5ee9264..88847df 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -466,7 +466,7 @@ void InputManager::UpdateName()
     free( formated );
 
     /* If we have Nothing */
-    if( name.isEmpty() )
+    if( name.simplified().isEmpty() )
     {
         char *uri = input_item_GetURI( input_GetItem( p_input ) );
         char *file = uri ? strrchr( uri, '/' ) : NULL;



More information about the vlc-commits mailing list