From 5cde673976a9b5edfd41ec8e3b1633abe60c257b Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 8 Aug 2008 19:04:14 +0000 Subject: [PATCH] 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 --- src/gui/set/stats_panel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gui/set/stats_panel.cpp b/src/gui/set/stats_panel.cpp index f8242e57..7184340d 100644 --- a/src/gui/set/stats_panel.cpp +++ b/src/gui/set/stats_panel.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -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) {