diff options
-rw-r--r-- | editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |