aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets
diff options
context:
space:
mode:
authorleo78913 <leo3758@riseup.net>2023-01-27 13:48:12 -0300
committerleo78913 <leo3758@riseup.net>2023-01-27 13:48:12 -0300
commita27564ed70861c0b6676e870c2965332fbd2bf45 (patch)
tree3ef9112fa6a5b4deb509cab04b12b60c4787003d /launcher/ui/widgets
parentdf8df41621f5ca0dd3fd7100918d689183289b1e (diff)
downloadPrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.tar.gz
PrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.tar.bz2
PrismLauncher-a27564ed70861c0b6676e870c2965332fbd2bf45.zip
better fix for WideBar::insertSeparator
Signed-off-by: leo78913 <leo3758@riseup.net>
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r--launcher/ui/widgets/WideBar.cpp4
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);