Commit e0803c9e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: warn when we cannot save the configuration

Close #3944
(cherry picked from commit 30a0d8c1592f781f49c64f12f972e5ba67b0a5e1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d381e5a5
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment