<table><tr><td style="">ngraham requested changes to this revision.<br />ngraham added a comment.<br />This revision now requires changes to proceed.
</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/D23926">View Revision</a></tr></table><br /><div><div><p>+1 for the general idea. However this implementation only incidentally does what you want it to do. I apologize for steering you this way in the bug report, because it looks a bit more complicated than I thought, and we may have to puzzle through a more complex change.</p>
<p>So right now, the ordering goes like this:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item"><span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">General</span></span></span> tab</li>
<li class="remarkup-list-item"><span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Permissions</span></span></span> tab</li>
<li class="remarkup-list-item"><span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Checksums</span></span></span> tab</li>
<li class="remarkup-list-item">Auto-generated tabs that depend on the context (of which <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Details</span></span></span> is one)</li>
</ul>
<p>So if we just move the auto-generated section to the second position, we can't actually guarantee that <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Details</span></span></span> always comes first in that list.</p>
<p>What you could maybe do is add a new function <tt style="background: #ebebeb; font-size: 13px;">KPropertiesDialog::insertPluginAt()</tt> that takes an int value <tt style="background: #ebebeb; font-size: 13px;">index</tt> and inserts the plugin at that position in the index with <tt style="background: #ebebeb; font-size: 13px;">d->m_pageList.insert(index, plugin);</tt>, then around line 628, check to see if the plugin we've just created is the <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Details</span></span></span> plugin, and use the new function to specifically insert it at index 1 (which is position 2 since we start counting from zero).</p>
<p>Does that sound like a plan? I'll be happy to help you through it!</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23926">https://phabricator.kde.org/D23926</a></div></div><br /><div><strong>To: </strong>mthw, Dolphin, Frameworks, VDG, ngraham<br /><strong>Cc: </strong>ngraham, GB_2, VDG, Dolphin, Frameworks, kde-frameworks-devel, iasensio, fprice, LeGast00n, cblack, konkinartem, ian, jguidon, hannahk, Ghost6, jraleigh, MrPepe, fbampaloukas, squeakypancakes, alexde, IohannesPetros, Codezela, feverfew, trickyricky26, mglb, meven, michaelh, crozbo, spoorun, ndavis, navarromorales, firef, andrebarros, bruns, skadinna, emmanuelp, mikesomov, aaronhoneycutt, mbohlender<br /></div>