]> git.sesse.net Git - vlc/commitdiff
Qt: correctly fallback to filename when empty tags
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 14 May 2012 12:10:16 +0000 (14:10 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 14 May 2012 12:20:51 +0000 (14:20 +0200)
modules/gui/qt4/input_manager.cpp

index 5ee9264c9c6f03e178230b0ccb7f59c0c60f1cbe..88847dfce8f93444e325f18ad4f4622650ec835f 100644 (file)
@@ -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;