Commit e60562f1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile warning

parent bb64392a
......@@ -78,7 +78,7 @@ SearchAndMergeContactDuplicateContactDialog::~SearchAndMergeContactDuplicateCont
void SearchAndMergeContactDuplicateContactDialog::searchPotentialDuplicateContacts(const Akonadi::Item::List &list)
{
const int listCount{list.count()};
const auto listCount{list.count()};
if (listCount == 0) {
mStackedWidget->setCurrentWidget(mNoContactSelected);
} else if (listCount < 2) {
......
......@@ -115,7 +115,7 @@ void ConfirmBeforeDeletingWidget::initializeItem(QTreeWidgetItem *item, const Co
void ConfirmBeforeDeletingWidget::slotCustomContextMenuRequested(const QPoint &p)
{
QMenu menu(this);
const int selectedItemCount{mTreeWidget->selectedItems().count()};
const auto selectedItemCount{mTreeWidget->selectedItems().count()};
menu.addAction(QIcon::fromTheme(QStringLiteral("list-add")), i18n("Add Rule..."), this, &ConfirmBeforeDeletingWidget::slotAddRule);
if (selectedItemCount == 1) {
menu.addAction(QIcon::fromTheme(QStringLiteral("document-edit")), i18n("Edit Rule..."), this, &ConfirmBeforeDeletingWidget::slotEditRule);
......
......@@ -206,7 +206,7 @@ void OpenUrlWithConfigureWidget::slotRemoveRule()
void OpenUrlWithConfigureWidget::slotCustomContextMenuRequested(const QPoint &p)
{
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, &OpenUrlWithConfigureWidget::slotAddRule);
if (selectedItemCount == 1) {
menu.addAction(QIcon::fromTheme(QStringLiteral("document-edit")), i18n("Edit Rule..."), this, &OpenUrlWithConfigureWidget::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