Commit 30a0d8c1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: warn when we cannot save the configuration

Close #3944
parent 7087eb30
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "dialogs/preferences.hpp" #include "dialogs/preferences.hpp"
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "dialogs/errors.hpp"
#include "components/complete_preferences.hpp" #include "components/complete_preferences.hpp"
#include "components/simple_preferences.hpp" #include "components/simple_preferences.hpp"
...@@ -294,7 +295,11 @@ void PrefsDialog::save() ...@@ -294,7 +295,11 @@ void PrefsDialog::save()
} }
/* Save to file */ /* 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(); 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