Commit 590264ba authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 44a497ab
......@@ -79,7 +79,8 @@ MultiImapVacationDialog::~MultiImapVacationDialog()
void MultiImapVacationDialog::switchToServerNamePage(const QString &serverName)
{
for (int i = 0; i < d->mTabWidget->count(); ++i) {
const int nbTab(d->mTabWidget->count());
for (int i = 0; i < nbTab; ++i) {
if (d->mTabWidget->tabText(i) == serverName) {
d->mTabWidget->setCurrentIndex(i);
break;
......
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