better fix for WideBar::insertSeparator

Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
leo78913 2023-01-27 13:48:12 -03:00
parent df8df41621
commit a27564ed70

View File

@ -157,9 +157,7 @@ void WideBar::insertSeparator(QAction* before)
return; return;
BarEntry entry; BarEntry entry;
entry.bar_action = new QAction("", this); entry.bar_action = QToolBar::insertSeparator(iter->bar_action);
entry.bar_action->setSeparator(true);
insertAction(iter->bar_action, entry.bar_action);
entry.type = BarEntry::Type::Separator; entry.type = BarEntry::Type::Separator;
m_entries.insert(iter, entry); m_entries.insert(iter, entry);