fix(widebar): fix insertSeparator
WideBar::insertSeparator was adding the separator to the end of the toolbar Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
@ -158,7 +158,9 @@ void WideBar::insertSeparator(QAction* before)
|
||||
return;
|
||||
|
||||
BarEntry entry;
|
||||
entry.bar_action = QToolBar::insertSeparator(before);
|
||||
entry.bar_action = new QAction("", this);
|
||||
entry.bar_action->setSeparator(true);
|
||||
insertAction(iter->bar_action, entry.bar_action);
|
||||
entry.type = BarEntry::Type::Separator;
|
||||
|
||||
m_entries.insert(iter, entry);
|
||||
|
Reference in New Issue
Block a user