diff options
author | leo78913 <leo3758@riseup.net> | 2023-01-27 13:48:12 -0300 |
---|---|---|
committer | leo78913 <leo3758@riseup.net> | 2023-01-27 13:48:12 -0300 |
commit | a27564ed70861c0b6676e870c2965332fbd2bf45 (patch) | |
tree | 3ef9112fa6a5b4deb509cab04b12b60c4787003d | |
parent | df8df41621f5ca0dd3fd7100918d689183289b1e (diff) | |
download | PrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.tar.gz PrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.tar.bz2 PrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.zip |
better fix for WideBar::insertSeparator
Signed-off-by: leo78913 <leo3758@riseup.net>
-rw-r--r-- | launcher/ui/widgets/WideBar.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/launcher/ui/widgets/WideBar.cpp b/launcher/ui/widgets/WideBar.cpp index ffc2dfd1..ac34e3aa 100644 --- a/launcher/ui/widgets/WideBar.cpp +++ b/launcher/ui/widgets/WideBar.cpp @@ -157,9 +157,7 @@ void WideBar::insertSeparator(QAction* before) return; BarEntry entry; - entry.bar_action = new QAction("", this); - entry.bar_action->setSeparator(true); - insertAction(iter->bar_action, entry.bar_action); + entry.bar_action = QToolBar::insertSeparator(iter->bar_action); entry.type = BarEntry::Type::Separator; m_entries.insert(iter, entry); |