[vlmc-devel] commit: PreferenceWidget: Discard unsaved changes when clicking "restore" ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Sun Dec 5 21:29:15 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec  5 21:30:09 2010 +0100| [fdcc444022fdbe3a58745b09e490dadc906e6a3a] | committer: Hugo Beauzée-Luyssen 

PreferenceWidget: Discard unsaved changes when clicking "restore"

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=fdcc444022fdbe3a58745b09e490dadc906e6a3a
---

 src/Gui/settings/PreferenceWidget.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Gui/settings/PreferenceWidget.cpp b/src/Gui/settings/PreferenceWidget.cpp
index 560f1be..d0704f4 100644
--- a/src/Gui/settings/PreferenceWidget.cpp
+++ b/src/Gui/settings/PreferenceWidget.cpp
@@ -113,6 +113,7 @@ PreferenceWidget::reset()
 {
     foreach ( ISettingsCategoryWidget* w, m_settings )
         w->setting()->restoreDefault();
+    discard();
     save();
 }
 



More information about the Vlmc-devel mailing list