From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/windowmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windowmenu.cpp') diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 70b05bcbc..e4cbbd75b 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -233,7 +233,7 @@ void WindowMenu::addButton(const char *const text, const std::string &description, int &x, int &h, const int key, const bool visible) { - Button *const btn = new Button(gettext(text), text, this); + Button *const btn = new Button(this, gettext(text), text, this); btn->setPosition(x, 0); btn->setDescription(description); btn->setTag(key); -- cgit v1.2.3-70-g09d2