vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Aug 23 18:58:47 2010 +0200| [e0803c9ed23a0153ae2565b5e165e172a309be63] | committer: Jean-Baptiste Kempf
Qt: warn when we cannot save the configuration Close #3944 (cherry picked from commit 30a0d8c1592f781f49c64f12f972e5ba67b0a5e1) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=e0803c9ed23a0153ae2565b5e165e172a309be63 --- modules/gui/qt4/dialogs/preferences.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp index 32b6704..2bfa9db 100644 --- a/modules/gui/qt4/dialogs/preferences.cpp +++ b/modules/gui/qt4/dialogs/preferences.cpp @@ -28,6 +28,7 @@ #include "dialogs/preferences.hpp" #include "util/qvlcframe.hpp" +#include "dialogs/errors.hpp" #include "components/complete_preferences.hpp" #include "components/simple_preferences.hpp" @@ -294,7 +295,11 @@ void PrefsDialog::save() } /* Save to file */ - config_SaveConfigFile( p_intf, NULL ); + if( config_SaveConfigFile( p_intf, NULL ) != 0 ) + { + ErrorsDialog::getInstance (p_intf)->addError( qtr( "Cannot save Configuration" ), + qtr("Preferences file could not be saved") ); + } accept(); } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
