Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/bugzillaintegration/reportassistantpages_base.cpp
Show All 17 Lines | |||||
18 | * | 18 | * | ||
19 | ******************************************************************/ | 19 | ******************************************************************/ | ||
20 | 20 | | |||
21 | #include "reportassistantpages_base.h" | 21 | #include "reportassistantpages_base.h" | ||
22 | 22 | | |||
23 | #include <QLabel> | 23 | #include <QLabel> | ||
24 | #include <QCheckBox> | 24 | #include <QCheckBox> | ||
25 | #include <QToolTip> | 25 | #include <QToolTip> | ||
26 | #include <QDesktopServices> | ||||
26 | 27 | | |||
27 | #include <KToolInvocation> | 28 | #include <KToolInvocation> | ||
28 | #include <KMessageBox> | 29 | #include <KMessageBox> | ||
29 | #include <KLocalizedString> | 30 | #include <KLocalizedString> | ||
30 | #include <KWindowConfig> | 31 | #include <KWindowConfig> | ||
31 | 32 | | |||
32 | #include "drkonqi.h" | 33 | #include "drkonqi.h" | ||
33 | #include "debuggermanager.h" | 34 | #include "debuggermanager.h" | ||
▲ Show 20 Lines • Show All 198 Lines • ▼ Show 20 Line(s) | 230 | if (m_needToReport && !m_isBKO) { | |||
232 | QString report = reportInterface()->generateReportFullText(false); | 233 | QString report = reportInterface()->generateReportFullText(false); | ||
233 | 234 | | |||
234 | if (reportAddress.isEmail()) { | 235 | if (reportAddress.isEmail()) { | ||
235 | QString subject = QStringLiteral("[%1] [%2] Automatic crash report generated by DrKonqi"); | 236 | QString subject = QStringLiteral("[%1] [%2] Automatic crash report generated by DrKonqi"); | ||
236 | subject= subject.arg(crashedApp->name()); | 237 | subject= subject.arg(crashedApp->name()); | ||
237 | subject= subject.arg(crashedApp->datetime().toString(QStringLiteral("yyyy-MM-dd"))); | 238 | subject= subject.arg(crashedApp->datetime().toString(QStringLiteral("yyyy-MM-dd"))); | ||
238 | KToolInvocation::invokeMailer(reportAddress, QLatin1String(""), QLatin1String("") , subject, report); | 239 | KToolInvocation::invokeMailer(reportAddress, QLatin1String(""), QLatin1String("") , subject, report); | ||
239 | } else { | 240 | } else { | ||
241 | QUrl url(reportAddress); | ||||
240 | if (QUrl(reportAddress).isRelative()) { //Scheme is missing | 242 | if (QUrl(reportAddress).isRelative()) { //Scheme is missing | ||
241 | reportAddress = QString::fromLatin1("http://%1").arg(reportAddress); | 243 | url = QUrl(QString::fromLatin1("http://%1").arg(reportAddress)); | ||
242 | } | 244 | } | ||
243 | KToolInvocation::invokeBrowser(reportAddress); | 245 | QDesktopServices::openUrl(url); | ||
244 | } | 246 | } | ||
245 | 247 | | |||
246 | //Show a copy of the bug reported | 248 | //Show a copy of the bug reported | ||
247 | openReportInformation(); | 249 | openReportInformation(); | ||
248 | } | 250 | } | ||
249 | 251 | | |||
250 | //Restart application | 252 | //Restart application | ||
251 | if (ui.m_restartAppOnFinish->isChecked()) { | 253 | if (ui.m_restartAppOnFinish->isChecked()) { | ||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |