Always persist the changed configuration.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 24 Nov 2010 12:06:45 +0000 (13:06 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 24 Nov 2010 12:06:45 +0000 (13:06 +0100)
src/main/java/net/pterodactylus/sone/web/OptionsPage.java

index 29ac52b..77f1a07 100644 (file)
@@ -61,6 +61,7 @@ public class OptionsPage extends SoneTemplatePage {
                        options.getBooleanOption("ClearOnNextRestart").set(clearOnNextRestart);
                        boolean reallyClearOnNextRestart = Boolean.parseBoolean(request.getHttpRequest().getPartAsStringFailsafe("really-clear-on-next-restart", 5));
                        options.getBooleanOption("ReallyClearOnNextRestart").set(reallyClearOnNextRestart);
+                       webInterface.getCore().saveConfiguration();
                        throw new RedirectException(getPath());
                }
                template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get());