[vlc-commits] commit: Qt4: do not explode if MyDocument isn't available ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Thu Jul 8 23:55:03 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 8 23:53:43 2010 +0200| [fe145872fccb389edc97c3dea2463f4956bc3db4] | committer: Jean-Baptiste Kempf
Qt4: do not explode if MyDocument isn't available
See http://forum.videolan.org/viewtopic.php?f=14&t=78396
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe145872fccb389edc97c3dea2463f4956bc3db4
---
modules/gui/qt4/qt4.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/qt4.hpp b/modules/gui/qt4/qt4.hpp
index 64f5821..8678b79 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;
More information about the vlc-commits
mailing list