<table><tr><td style="">poboiko created this revision.<br />poboiko added a reviewer: dvratil.<br />Herald added a project: KDE PIM.<br />poboiko 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/D28775">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch ports KJots from deprecated <tt style="background: #ebebeb; font-size: 13px;">KBookmarksMenu</tt> API (see <a href="https://phabricator.kde.org/D25660" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D25660: Decouple KBookmarksMenu from KActionCollection</a>).</p>

<p>On my machine, it also fixes a crash (<tt style="background: #ebebeb; font-size: 13px;">bm_action</tt> was null for some reason,<br />
I did not investigate it though).</p>

<p>It also fixes the shortcuts collision (<tt style="background: #ebebeb; font-size: 13px;">action->setShortcut</tt> was not enough,<br />
one also needs to run <tt style="background: #ebebeb; font-size: 13px;">actionCollection->setDefaultShortcut</tt>).</p>

<p>BUG: 384000</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Start KJots</li>
<li class="remarkup-list-item">It don't crash, and <tt style="background: #ebebeb; font-size: 13px;">Ambiguous shortcuts</tt> dialog does not appear)</li>
<li class="remarkup-list-item">Open <tt style="background: #ebebeb; font-size: 13px;">Bookmarks</tt> menu, the shortcut is <tt style="background: #ebebeb; font-size: 13px;">Ctrl+Shift+B</tt>.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R573 KJots</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/D28775">https://phabricator.kde.org/D28775</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kjotswidget.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, dvratil<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>