<table><tr><td style="">marten created this revision.<br />marten added a reviewer: Frameworks.<br />marten set the repository for this revision to R263 KXmlGui.<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/D4072" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The rather old bug <a href="https://bugs.kde.org/show_bug.cgi?id=277142" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=277142</a>, although raised against KDE4 kdelibs, still applies to KDE Frameworks. The bug reporting address is assumed to be an email address in the "Report Bug" dialogue (KBugReport) and in the "About" dialogue "Author" tab (the "Please report bugs to..." link).</p>
<p>This patch corrects this for the KXmlGui framework. If submission is not to bugs.kde.org then KAboutApplicationDialog attempts to parse the bug address as a URL; only if the resulting URL has no scheme is "mailto:" assumed. This is then presented to the user as the clickable link.</p>
<p>KBugReport currently handles only two cases, either the wizard at bugs.kde.org or an email address. This is extended to handle a third case, a custom URL. To distinguish the three cases the d->submitBugWeb boolean is changed to d->bugDestination, a KBugReportPrivate::BugDestination enum. In the third case, the dialogue is shown in the same way as for bugs.kde.org reporting, but with different wording for the message and button.</p>
<p>The manual test at tests/kbugreporttest.cpp is extended to test this third case.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Checked for correct operation of tests/kbugreporttest for the three cases.</p>
<p>Checked for correct appearance and operation of the "About application" dialogue and "Report Bug" for KWrite, a standard KDE application reporting to bugs.kde.org.</p>
<p>Checked appearance and operation of those for my own application using a custom bug reporting address, as an email address and as a http: URL.</p>
<p>Checked for correct operation of DrKonqi with a standard bug reporting address.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R263 KXmlGui</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4072" rel="noreferrer">https://phabricator.kde.org/D4072</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kaboutapplicationdialog.cpp<br />
src/kbugreport.cpp<br />
tests/kbugreporttest.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>marten, Frameworks<br /></div>