summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/popup.cpp')
-rw-r--r--src/gui/widgets/popup.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/widgets/popup.cpp b/src/gui/widgets/popup.cpp
index 20b4c3ca1..c2e39fdb2 100644
--- a/src/gui/widgets/popup.cpp
+++ b/src/gui/widgets/popup.cpp
@@ -38,6 +38,8 @@ Popup::Popup(const std::string &name,
Container(nullptr),
gcn::MouseListener(),
gcn::WidgetListener(),
+ mPadding(3),
+ mSkin(nullptr),
mPopupName(name),
mMinWidth(100),
mMinHeight(40),
@@ -53,8 +55,6 @@ Popup::Popup(const std::string &name,
addWidgetListener(this);
- setPadding(3);
-
if (skin == "")
skin = "popup.xml";
@@ -68,10 +68,6 @@ Popup::Popup(const std::string &name,
setPalette(mSkin->getOption("palette"));
}
}
- else
- {
- mSkin = nullptr;
- }
// Add this window to the window container
windowContainer->add(this);