Author: shadowmaster
Date: Thu Oct 27 08:19:49 2011
New Revision: 51673

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51673&view=rev
Log:
gui2/teditor_settings: Made sure lighting setting changes are applied 
immediately when closing settings

Formerly they'd only have an effect when automatic map view updates were
enabled, or when opening the settings dialog again, or when toggling
presets.

Modified:
    trunk/changelog
    trunk/src/gui/dialogs/editor_settings.cpp
    trunk/src/gui/dialogs/editor_settings.hpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=51673&r1=51672&r2=51673&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Oct 27 08:19:49 2011
@@ -12,6 +12,9 @@
        die
      * Across the Harsh Sands: the Black Hand oasis is no longer possible to
        enter without triggering the bandits
+ * Editor:
+   * Made sure lighting setting changes are applied immediately when closing 
the
+     settings window when automatic map view updates are disabled
  * Graphics:
    * New Animations:
      * Goblin spearman run se

Modified: trunk/src/gui/dialogs/editor_settings.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_settings.cpp?rev=51673&r1=51672&r2=51673&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_settings.cpp (original)
+++ trunk/src/gui/dialogs/editor_settings.cpp Thu Oct 27 08:19:49 2011
@@ -245,5 +245,11 @@
        update_selected_tod_info(window);
 }
 
+void teditor_settings::post_show(twindow& window)
+{
+    update_tod_display(window);
+}
+
+
 } // namespace gui2
 

Modified: trunk/src/gui/dialogs/editor_settings.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_settings.hpp?rev=51673&r1=51672&r2=51673&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_settings.hpp (original)
+++ trunk/src/gui/dialogs/editor_settings.hpp Thu Oct 27 08:19:49 2011
@@ -66,6 +66,9 @@
        /** Inherited from tdialog. */
        void pre_show(CVideo& video, twindow& window);
 
+       /** Inherited from tdialog. */
+       void post_show(twindow& window);
+
        /** Available time_of_days */
        std::vector<time_of_day> tods_;
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to