<table><tr><td style="">elvisangelaccio created this revision.<br />elvisangelaccio added reviewers: Frameworks, dfaure.<br />Restricted Application added a project: Frameworks.
</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/D8774" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The "Configure Toolbars" dialog was made non-modal a long time ago [1]<br />
in order to allow drag-and-drop of toolbar actions while the dialog is<br />
open. This was a bad idea because:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">It is possible to open the Configure Toolbars dialog and then any</li>
</ol>

<p>other modal dialog (e.g. Configure Shortcuts), making the toolbar dialog<br />
unusable.</p>

<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">After a drag-n-drop of actions in the toolbar, the order of actions in</li>
</ol>

<p>the "Current actions" column of the toolbar dialog is not updated.</p>

<p>Thanks to <a href="https://phabricator.kde.org/D8773" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D8773</a> we can show the dialog as modal and fix both issues.</p>

<p>If some application really wants the dialog as non-modal, it can do so<br />
by reimplementing the <tt style="background: #ebebeb; font-size: 13px;">KXmlGuiWindow::configureToolbars()</tt> slot.</p>

<p>Depends on <a href="https://phabricator.kde.org/D8773" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D8773</a></p>

<p>[1]: <a href="https://phabricator.kde.org/R446:3ea5c463730935c694b26530d911668eff836ddb" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/R446:3ea5c463730935c694b26530d911668eff836ddb</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R263 KXmlGui</div></div></div><br /><div><strong>BRANCH</strong><div><div>modal-toolbar-dialog</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8774" rel="noreferrer">https://phabricator.kde.org/D8774</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kedittoolbar.cpp<br />
src/ktoolbar.h<br />
src/kxmlguiwindow.cpp<br />
src/kxmlguiwindow.h</div></div></div><br /><div><strong>To: </strong>elvisangelaccio, Frameworks, dfaure<br /></div>