diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 21:22:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 21:22:17 +0300 |
commit | 773ef01f1490f0884836a9d08f75938eb8742c8e (patch) | |
tree | dc7ccb40d39cf7ad4b712a342407257671962205 /src/listeners | |
parent | c66f0547024b54c1a944746e947328c4e7fa56ae (diff) | |
download | manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.gz manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.bz2 manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.xz manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.zip |
Add parent window field to all widgets.
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/guitableactionlistener.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listeners/guitableactionlistener.cpp b/src/listeners/guitableactionlistener.cpp index d08e4c9f8..99b3fb487 100644 --- a/src/listeners/guitableactionlistener.cpp +++ b/src/listeners/guitableactionlistener.cpp @@ -39,6 +39,7 @@ GuiTableActionListener::GuiTableActionListener(GuiTable *restrict table, { widget->addActionListener(this); widget->setParent(table); + widget->setWindow(table->getWindow()); } } @@ -47,6 +48,7 @@ GuiTableActionListener::~GuiTableActionListener() if (mWidget) { mWidget->removeActionListener(this); + mWidget->setWindow(nullptr); mWidget->setParent(nullptr); } } |