]> git.sesse.net Git - vlc/commitdiff
Qt4: no need to try to search and replace when we know that the QString is empty.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 25 May 2009 22:32:19 +0000 (00:32 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 26 May 2009 08:11:28 +0000 (10:11 +0200)
modules/gui/qt4/input_manager.cpp

index 82bdb04729e4d0b6f05979f5ee385b582b1cf51d..59d70ced451099dd0a57452fe24b76a54ae13d5f 100644 (file)
@@ -592,10 +592,12 @@ void InputManager::UpdateArt()
         char *psz_art = input_item_GetArtURL( input_GetItem( p_input ) );
         url = qfu( psz_art );
         free( psz_art );
+
+        url = url.replace( "file://", "" );
+        /* Taglib seems to define a attachment://, It won't work yet */
+        url = url.replace( "attachment://", "" );
     }
-    url = url.replace( "file://", QString("" ) );
-    /* Taglib seems to define a attachment://, It won't work yet */
-    url = url.replace( "attachment://", QString("" ) );
+
     /* Update Art meta */
     emit artChanged( url );
 }