summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-23 19:01:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-23 19:01:31 +0300
commitf45dc867263a799c1af3bf8e64063bf795681c26 (patch)
tree9b2338c7a276c328874e8119f8ec407de8644647 /src/gui/widgets/popup.h
parent6ad3584c69d102a7592eaac1a3d7374cf610895f (diff)
downloadmanaplus-f45dc867263a799c1af3bf8e64063bf795681c26.tar.gz
manaplus-f45dc867263a799c1af3bf8e64063bf795681c26.tar.bz2
manaplus-f45dc867263a799c1af3bf8e64063bf795681c26.tar.xz
manaplus-f45dc867263a799c1af3bf8e64063bf795681c26.zip
Set mWindow pointer to self in postInit base methods for window and popup.
Diffstat (limited to 'src/gui/widgets/popup.h')
-rw-r--r--src/gui/widgets/popup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h
index f39a92ec0..1d5bf0492 100644
--- a/src/gui/widgets/popup.h
+++ b/src/gui/widgets/popup.h
@@ -172,7 +172,7 @@ class Popup notfinal : public Container,
{ return mVisible; }
virtual void postInit()
- { mInit = true; }
+ { mInit = true; mWindow = this; }
protected:
int mPadding; /**< Holds the padding of the popup. */