diff --git a/src/ui/widget.cpp b/src/ui/widget.cpp index aebcac7db..52eaf202c 100644 --- a/src/ui/widget.cpp +++ b/src/ui/widget.cpp @@ -341,7 +341,7 @@ Window* Widget::getRoot() while (widget) { if (widget->type() == kWindowWidget) - return dynamic_cast(widget); + return static_cast(widget); widget = widget->m_parent; }