[network/ruqola] src/widgets/room: addSeparator already add separator not necessary to add to menu after that.

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a953200c81d8edcfb92b2f3cd1b5fdf0995f8a02 by Laurent Montel.
Committed on 13/08/2026 at 16:44.
Pushed by mlaurent into branch 'master'.

addSeparator already add separator not necessary to add to menu after that.

M  +0    -2    src/widgets/room/channelactionpopupmenu.cpp

https://invent.kde.org/network/ruqola/-/commit/a953200c81d8edcfb92b2f3cd1b5fdf0995f8a02

diff --git a/src/widgets/room/channelactionpopupmenu.cpp b/src/widgets/room/channelactionpopupmenu.cpp
index 569358efed..47a0b4e33d 100644
--- a/src/widgets/room/channelactionpopupmenu.cpp
+++ b/src/widgets/room/channelactionpopupmenu.cpp
@@ -94,7 +94,6 @@ void ChannelActionPopupMenu::createMenu()
     });
 
     mInviteUsersGenerateUrlSeparator = mMenu->addSeparator();
-    mMenu->addAction(mInviteUsersGenerateUrlSeparator);
     mInviteUsersGenerateUrl = new QAction(i18nc("@action", "Invite Users"), this);
     mMenu->addAction(mInviteUsersGenerateUrl);
     connect(mInviteUsersGenerateUrl, &QAction::triggered, this, [this]() {
@@ -103,7 +102,6 @@ void ChannelActionPopupMenu::createMenu()
 
     mAddUserInRoomsSeparator = mMenu->addSeparator();
     mAddUserInRooms = new QAction(i18nc("@action", "Add Users in Channel…"), this);
-    mMenu->addAction(mAddUserInRoomsSeparator);
     connect(mAddUserInRooms, &QAction::triggered, this, [this]() {
         Q_EMIT actionRequested(RoomHeaderWidget::AddUsersInRoom);
     });
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.