Author: alink
Date: Wed Apr 25 05:29:42 2007
New Revision: 17069

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17069&view=rev
Log:
Quick fix to prevent the loss of all editor hotkeys when reloading a map. 
Probably safe because just reread the 
theme/editor.cfg after the bad previous reload of hotkeys, and any new problem 
can't be worse than the previous 
state.

Modified:
    trunk/src/editor/editor.cpp

Modified: trunk/src/editor/editor.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor/editor.cpp?rev=17069&r1=17068&r2=17069&view=diff
==============================================================================
--- trunk/src/editor/editor.cpp (original)
+++ trunk/src/editor/editor.cpp Wed Apr 25 05:29:42 2007
@@ -196,6 +196,11 @@
        }
        else {
                hotkey::load_hotkeys(hotkeys_);
+
+               //FIXME: saved hotkeys doesn't reload correctly,
+               // so we just reread the theme hotkeys every time
+               hotkey::load_hotkeys(theme_);
+               
                palette_.select_fg_terrain(old_fg_terrain_);
                palette_.select_bg_terrain(old_bg_terrain_);
                brush_.select_brush_size(old_brush_size_);


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

Reply via email to