<table><tr><td style="">sander created this revision.<br />sander added a reviewer: Okular.<br />Restricted Application added a project: Okular.<br />Restricted Application added a subscriber: okular-devel.<br />sander 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/D14809">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The 'current generators' dialog has a page for each generator. The choice of which of these pages is visible when the dialog is first opened seems to be random (or at least I don't see the pattern). This patch makes sure that the currently running generator determines which page is opened, because in most cases people will want to set preferences for the generator they are currently using.</p>
<p>Unfortunately, I had to change the interface of Okular::ConfigInterface for this. Speak up if you know a better way.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Open Okular with a pdf file</li>
<li class="remarkup-list-item">Open Settings -> Configure Backends</li>
<li class="remarkup-list-item">Notice how the dialog opens with the pdf settings right away</li>
<li class="remarkup-list-item">Open (e.g.) a markdown file</li>
<li class="remarkup-list-item">Open Settings -> Configure Backends</li>
<li class="remarkup-list-item">Notice how the dialog opens with the markdown settings right away</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14809">https://phabricator.kde.org/D14809</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>core/document.cpp<br />
core/textdocumentgenerator.cpp<br />
core/textdocumentgenerator.h<br />
generators/fictionbook/generator_fb.cpp<br />
generators/fictionbook/generator_fb.h<br />
generators/markdown/generator_md.cpp<br />
generators/markdown/generator_md.h<br />
generators/ooo/generator_ooo.cpp<br />
generators/ooo/generator_ooo.h<br />
generators/poppler/generator_pdf.cpp<br />
generators/poppler/generator_pdf.h<br />
generators/txt/generator_txt.cpp<br />
generators/txt/generator_txt.h<br />
interfaces/configinterface.h</div></div></div><br /><div><strong>To: </strong>sander, Okular<br /><strong>Cc: </strong>okular-devel, ngraham, aacid<br /></div>