Commit 96a45116 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix qt6 compile warning

parent d9847c97
Pipeline #154679 passed with stages
in 2 minutes and 58 seconds
......@@ -88,7 +88,7 @@ bool CustomDebugSettingsPage::eventFilter(QObject *obj, QEvent *event)
void CustomDebugSettingsPage::slotCustomContextMenu(const QPoint &pos)
{
QMenu menu(this);
const int selectedItemCount{mListWidget->selectedItems().count()};
const auto selectedItemCount{mListWidget->selectedItems().count()};
menu.addAction(QIcon::fromTheme(QStringLiteral("list-add")), i18n("Add Rule..."), this, &CustomDebugSettingsPage::slotAddRule);
if (selectedItemCount == 1) {
menu.addAction(QIcon::fromTheme(QStringLiteral("document-edit")), i18n("Edit Rule"), this, &CustomDebugSettingsPage::slotEditRule);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment