<table><tr><td style="">sitter created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />sitter requested review of this revision.
</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/D24908">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the default shortcut is empty the UI string "None" is used to<br />
indicate that. Alas, when mapping QKeySequences to the UI label we have to<br />
rely on QKS::toString being equal/notequal to the text in the label and<br />
that is not the case since an empty QKS will be an empty string, but<br />
our display string is "None".</p>
<p>This resulted in the "custom" sequence detection incorrectly thinking all<br />
shortcuts without a default are customized when in fact they aren't, the<br />
strings are just different because we express it as "None" and QKS as "".<br />
To mitigate this we'll simply ensure empty sequences are serialized to our<br />
None reference string instead of an empty string.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R263 KXmlGui</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24908">https://phabricator.kde.org/D24908</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kshortcuteditwidget.cpp<br />
src/kshortcutsdialog_p.h</div></div></div><br /><div><strong>To: </strong>sitter<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>