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

Fix some compile error against qt6

parent e43bc3f5
Pipeline #177075 passed with stage
in 3 minutes and 5 seconds
......@@ -78,7 +78,7 @@ TransportManagementWidget::~TransportManagementWidget() = default;
void TransportManagementWidgetPrivate::updateButtonState()
{
const int nbItems{ui.transportList->selectedItems().count()};
const auto nbItems{ui.transportList->selectedItems().count()};
if (nbItems == 0) {
ui.editButton->setEnabled(false);
ui.renameButton->setEnabled(false);
......@@ -131,7 +131,7 @@ void TransportManagementWidgetPrivate::removeClicked()
if (selectedItems.isEmpty()) {
return;
}
const int nbAccount{selectedItems.count()};
const auto nbAccount{selectedItems.count()};
const QString msg = (selectedItems.count() == 1)
? i18n("Do you want to remove outgoing account '%1'?", ui.transportList->selectedItems().at(0)->text(0))
: i18np("Do you really want to remove this %1 outgoing account?", "Do you really want to remove these %1 outgoing accounts?", nbAccount);
......
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