don't refresh stats panel when only a style changes

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1106 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-08 19:04:14 +00:00
parent 47c5fd2d7a
commit 5cde673976
+7 -2
View File
@@ -15,6 +15,7 @@
#include <gui/util.hpp>
#include <data/game.hpp>
#include <data/statistics.hpp>
#include <data/action/value.hpp>
#include <util/window_id.hpp>
#include <util/alignment.hpp>
#include <util/tagged_string.hpp>
@@ -337,8 +338,12 @@ void StatsPanel::onChangeSet() {
onChange();
}
void StatsPanel::onAction(const Action&, bool undone) {
onChange();
void StatsPanel::onAction(const Action& action, bool undone) {
TYPE_CASE_(action, ScriptValueEvent) {
// ignore style only stuff
} else {
onChange();
}
}
void StatsPanel::initUI (wxToolBar* tb, wxMenuBar* mb) {