Commit 1dfe20b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent c0a7e2ff
...@@ -97,10 +97,11 @@ void RecipientsEditorSideWidget::setTotal(int recipients, int lines) ...@@ -97,10 +97,11 @@ void RecipientsEditorSideWidget::setTotal(int recipients, int lines)
, "No recipients"); , "No recipients");
else labelText = i18ncp("@info:status Number of recipients selected" else labelText = i18ncp("@info:status Number of recipients selected"
, "1 recipient", "%1 recipients", recipients); , "1 recipient", "%1 recipients", recipients);
mTotalLabel->setText(labelText);
if (lines > 3) { if (lines > 3) {
mTotalLabel->setText(labelText);
mTotalLabel->show(); mTotalLabel->show();
updateTotalToolTip();
} else { } else {
mTotalLabel->hide(); mTotalLabel->hide();
} }
...@@ -111,7 +112,6 @@ void RecipientsEditorSideWidget::setTotal(int recipients, int lines) ...@@ -111,7 +112,6 @@ void RecipientsEditorSideWidget::setTotal(int recipients, int lines)
mDistributionListButton->hide(); mDistributionListButton->hide();
} }
updateTotalToolTip();
} }
void RecipientsEditorSideWidget::updateTotalToolTip() void RecipientsEditorSideWidget::updateTotalToolTip()
......
Markdown is supported
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