summaryrefslogtreecommitdiff
path: root/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor.cpp')
-rw-r--r--editor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor.cpp b/editor.cpp
index da83e15..a51c421 100644
--- a/editor.cpp
+++ b/editor.cpp
@@ -16,8 +16,10 @@ static struct {
static int mat_win_handler(UI::Element* e, const UI::Message& m) {
(void)e;
- if (m.type == UI::Message::Type::destroy)
+ if (m.type == UI::Message::Type::destroy) {
editor.mat_btn->enable();
+ editor.mat_win = 0;
+ }
return 0;
}