diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 663464a8..9bdb20ef 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -66,7 +66,7 @@ ChatTab::ChatTab(const std::string &name) listen(Event::ConfigChannel); // Initiate the text format - updateTextFormat(((Window*)getParent())->getGuiAlpha()); + updateTextFormat(Window::getGuiAlpha()); } ChatTab::~ChatTab() @@ -104,8 +104,7 @@ void ChatTab::event(Event::Channel channel, const Event &event) event.getType() == Event::ConfigOptionChanged && event.getString("option") == "guialpha") { - int alpha = ((Window*)getParent())->getGuiAlpha(); - updateTextFormat(alpha); + updateTextFormat(Window::getGuiAlpha()); } } |