<table><tr><td style="">poboiko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9715" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>The workaround in GoogleSettingsDialog::reloadAccounts() (with disconnecting/connecting) doesn't work because signal gets connected as</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">connect(m_accComboBox, QOverload<const QString &>::of(&KComboBox::currentIndexChanged), this, &GoogleSettingsDialog::currentAccountChanged);</li>
</ul>

<p>and gets disconnected as</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">disconnect(m_accComboBox, SIGNAL(currentIndexChanged(QString)), this, SIGNAL(currentAccountChanged(QString)));</li>
</ul>

<p>Somehow it doesn't match (?), and does not disconnect. If I switch to new signal/slot API in disconnect, the GoogleSettingsDialog::currentAccountChanged signal gets emitted only once. Probably, this is a better solution.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9715" rel="noreferrer">https://phabricator.kde.org/D9715</a></div></div><br /><div><strong>To: </strong>poboiko, KDE PIM<br /><strong>Cc: </strong>dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>