Add a getter Window::deleted()
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class ModalWindow: public Window
|
|||||||
|
|
||||||
void deleteLater()
|
void deleteLater()
|
||||||
{
|
{
|
||||||
if (deleted)
|
if (_deleted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (previousFocus) {
|
if (previousFocus) {
|
||||||
|
|||||||
+2
-2
@@ -69,7 +69,7 @@ void Window::detach()
|
|||||||
|
|
||||||
void Window::deleteLater(bool detach)
|
void Window::deleteLater(bool detach)
|
||||||
{
|
{
|
||||||
if (deleted)
|
if (_deleted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TRACE_WINDOWS("Delete %p %s", this, getWindowDebugString().c_str());
|
TRACE_WINDOWS("Delete %p %s", this, getWindowDebugString().c_str());
|
||||||
@@ -89,7 +89,7 @@ void Window::deleteLater(bool detach)
|
|||||||
|
|
||||||
trash.push_back(this);
|
trash.push_back(this);
|
||||||
|
|
||||||
deleted = true;
|
_deleted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::clear()
|
void Window::clear()
|
||||||
|
|||||||
+6
-1
@@ -342,6 +342,11 @@ class Window {
|
|||||||
|
|
||||||
void detach();
|
void detach();
|
||||||
|
|
||||||
|
bool deleted()
|
||||||
|
{
|
||||||
|
return _deleted;
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Window * parent;
|
Window * parent;
|
||||||
std::list<Window *> children;
|
std::list<Window *> children;
|
||||||
@@ -354,7 +359,7 @@ class Window {
|
|||||||
coord_t scrollPositionY = 0;
|
coord_t scrollPositionY = 0;
|
||||||
WindowFlags windowFlags;
|
WindowFlags windowFlags;
|
||||||
LcdFlags textFlags;
|
LcdFlags textFlags;
|
||||||
bool deleted = false;
|
bool _deleted = false;
|
||||||
|
|
||||||
static Window * focusWindow;
|
static Window * focusWindow;
|
||||||
static Window * slidingWindow;
|
static Window * slidingWindow;
|
||||||
|
|||||||
Reference in New Issue
Block a user