summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-23 18:41:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-23 18:41:27 +0300
commit2443f62e578283b20aaed1874fb356753774cf79 (patch)
tree01dd92a02a60a814710708af2155d4ead9386ce1 /src/gui/widgets/popup.h
parentc44828b14dce7e00ca01791eecf2bc452ee4cb00 (diff)
downloadplus-2443f62e578283b20aaed1874fb356753774cf79.tar.gz
plus-2443f62e578283b20aaed1874fb356753774cf79.tar.bz2
plus-2443f62e578283b20aaed1874fb356753774cf79.tar.xz
plus-2443f62e578283b20aaed1874fb356753774cf79.zip
Add check in popups for posInit() calls.
If postInit() was not called show error in log.
Diffstat (limited to 'src/gui/widgets/popup.h')
-rw-r--r--src/gui/widgets/popup.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h
index a375a90c7..f39a92ec0 100644
--- a/src/gui/widgets/popup.h
+++ b/src/gui/widgets/popup.h
@@ -172,8 +172,7 @@ class Popup notfinal : public Container,
{ return mVisible; }
virtual void postInit()
- {
- }
+ { mInit = true; }
protected:
int mPadding; /**< Holds the padding of the popup. */
@@ -181,12 +180,12 @@ class Popup notfinal : public Container,
private:
std::string mPopupName; /**< Name of the popup */
+ ImageCollection *mVertexes;
int mMinWidth; /**< Minimum popup width */
int mMinHeight; /**< Minimum popup height */
int mMaxWidth; /**< Maximum popup width */
int mMaxHeight; /**< Maximum popup height */
-
- ImageCollection *mVertexes;
+ bool mInit;
};
#endif // GUI_WIDGETS_POPUP_H