]> git.sesse.net Git - vlc/commitdiff
Qt4: do not explode if MyDocument isn't available
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 8 Jul 2010 21:53:43 +0000 (23:53 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 8 Jul 2010 21:55:13 +0000 (23:55 +0200)
See http://forum.videolan.org/viewtopic.php?f=14&t=78396

modules/gui/qt4/qt4.hpp

index 64f58212b70815b1c5abb2edfcff5cc2f75a1e5c..8678b792ce26d15c87efd22c0ad130c5c72703f8 100644 (file)
@@ -121,7 +121,7 @@ static inline QString QVLCUserDir( vlc_userdir_t type )
 {
     char *dir = config_GetUserDir( type );
     if( !dir )
-        abort();
+        return "";
     QString res = qfu( dir );
     free( dir );
     return res;