<table><tr><td style="">sitter created this revision.<br />Restricted Application added a subscriber: kde-utils-devel.
</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/D7015" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>QPushButtons have a defaultyness which causes the "default" to get a click<br />
signal if return gets pressed. Combined with the manual connection from<br />
QLineEdit this causes a double trigger of slotSearch resulting<br />
in the search dialog popping up, after closing popping up again (second<br />
connection).<br />
Given the defaultyness of QPB the manual connection from the QLE to the<br />
search slot is not necessary as hitting return will trigger the search<br />
anyway due to auto-defaultyness.<br />
To make the defaultyness more assertive in the code we'll set the search<br />
button as manual default (gets triggered whenever no auto-default button<br />
has focus). Additionally, the manual connection from QLE to the search slot<br />
gets dropped as it is unnecessary.</p>

<p>This prevents the dialog from opening twice *and* has the side effect of<br />
making the dialog properly keyboard accessible. Previously if you entered<br />
a keyid and tabbed your way to the import button the import would run, BUT<br />
so would a search (due to the connection). Using defaultyness we'll now<br />
run search unless the user explicitly gave import focus (e.g. by tabbing to<br />
it).</p>

<p>CHANGELOG: fix duplicated dialog when searching for keys</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R358 KGpg</div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/17.08</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7015" rel="noreferrer">https://phabricator.kde.org/D7015</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>keyservers.cpp</div></div></div><br /><div><strong>To: </strong>sitter, dakon<br /><strong>Cc: </strong>kde-utils-devel<br /></div>