From fe145872fccb389edc97c3dea2463f4956bc3db4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 8 Jul 2010 23:53:43 +0200 Subject: [PATCH] Qt4: do not explode if MyDocument isn't available See http://forum.videolan.org/viewtopic.php?f=14&t=78396 --- modules/gui/qt4/qt4.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/qt4/qt4.hpp b/modules/gui/qt4/qt4.hpp index 64f58212b7..8678b792ce 100644 --- a/modules/gui/qt4/qt4.hpp +++ b/modules/gui/qt4/qt4.hpp @@ -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; -- 2.39.5