diff --git a/common/include/ui.h b/common/include/ui.h index 3802e22f3..14b3f881b 100644 --- a/common/include/ui.h +++ b/common/include/ui.h @@ -80,7 +80,6 @@ struct UI_GADGET struct UI_GADGET * when_right; \ struct UI_GADGET * parent; \ int status; \ - int oldstatus; \ grs_subcanvas_ptr canvas; \ protected: ~UI_GADGET() = default; diff --git a/common/ui/gadget.cpp b/common/ui/gadget.cpp index 8bde065bf..859f54fec 100644 --- a/common/ui/gadget.cpp +++ b/common/ui/gadget.cpp @@ -85,7 +85,6 @@ void ui_gadget_add(UI_DIALOG &dlg, short x1, short y1, short x2, short y2, UI_GA gadget.when_left = nullptr; gadget.when_right = nullptr; gadget.status = 1; - gadget.oldstatus = 0; if (x1 == 0 && x2 == 0 && y1 == 0 && y2 == 0) gadget.canvas.reset(); else