From 6744c906028c76b64ef0cbfda79b796b7daa4724 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 6 Apr 2016 06:51:29 +0000 Subject: [PATCH] plasma: simplify error reporting in homerun applet Signed-off-by: Ivailo Monev --- plasma/applets/homerun/fullscreen/viewer/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plasma/applets/homerun/fullscreen/viewer/main.cpp b/plasma/applets/homerun/fullscreen/viewer/main.cpp index 191d7aeb..26212ac2 100644 --- a/plasma/applets/homerun/fullscreen/viewer/main.cpp +++ b/plasma/applets/homerun/fullscreen/viewer/main.cpp @@ -19,12 +19,12 @@ along with this program. If not, see . */ // KDE #include -#include #include #include #include #include #include +#include #include // Qt @@ -35,7 +35,7 @@ along with this program. If not, see . #include #include -static void showError(const QString &errorMessage) +static void showError(const QString &errorMessage, const QString &email) { int ret = KMessageBox::warningContinueCancel(0, i18n("

Sorry, Homerun failed to load

" @@ -51,8 +51,7 @@ static void showError(const QString &errorMessage) if (ret != KMessageBox::Continue) { return; } - KBugReport report; - report.exec(); + KToolInvocation::invokeBrowser(email); } int main(int argc, char *argv[]) @@ -89,7 +88,7 @@ int main(int argc, char *argv[]) QString errorMessage; if (!view.init(&errorMessage)) { if (args->isSet("show")) { - showError(errorMessage); + showError(errorMessage, aboutData->bugAddress()); } return 1; } -- 2.11.0