always update dropdown on split button press (#2590)
This commit is contained in:
@@ -113,6 +113,9 @@ const QColor &Button::getBorderColor() const
|
||||
|
||||
void Button::setMenu(std::unique_ptr<QMenu> menu)
|
||||
{
|
||||
if (this->menu_)
|
||||
this->menu_.release()->deleteLater();
|
||||
|
||||
this->menu_ = std::move(menu);
|
||||
|
||||
this->menu_->installEventFilter(
|
||||
|
||||
Reference in New Issue
Block a user