src/misc_gui.cpp
changeset 9393 5dfefab66454
parent 9390 88d36f907e96
child 9394 019d83716697
equal deleted inserted replaced
9392:b72de1fe60e1 9393:5dfefab66454
  1091 	}
  1091 	}
  1092 
  1092 
  1093 	~QueryStringWindow()
  1093 	~QueryStringWindow()
  1094 	{
  1094 	{
  1095 		if (!this->handled && this->parent != NULL) {
  1095 		if (!this->handled && this->parent != NULL) {
  1096 			this->handled = true;
  1096 			Window *parent = this->parent;
  1097 			this->parent->OnQueryTextFinished(NULL);
  1097 			this->parent = NULL; // so parent doesn't try to delete us again
       
  1098 			parent->OnQueryTextFinished(NULL);
  1098 		}
  1099 		}
  1099 		ClrBit(_no_scroll, SCROLL_EDIT);
  1100 		ClrBit(_no_scroll, SCROLL_EDIT);
  1100 	}
  1101 	}
  1101 };
  1102 };
  1102 
  1103