From 6acd0f4c54dcd69d029106c2465cba19d99ff24b Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Kempf <jb@videolan.org>
Date: Mon, 14 May 2012 14:10:16 +0200
Subject: [PATCH] Qt: correctly fallback to filename when empty tags

---
 modules/gui/qt4/input_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 5ee9264c9c6f..88847dfce8f9 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;
-- 
GitLab