From 15b2bfefbcbde08f4385907c5efb32f59b1aa501 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 20 Jan 2014 19:10:29 +0100 Subject: [PATCH] External browser testing... --- src/gui/messagebox.cpp | 2 +- src/gui/messagebox.h | 2 ++ src/gui/messagesview.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/messagebox.cpp b/src/gui/messagebox.cpp index d1a21bc31..c798ddf34 100644 --- a/src/gui/messagebox.cpp +++ b/src/gui/messagebox.cpp @@ -8,7 +8,7 @@ MessageBox::MessageBox() { } -QMessageBox::StandardButton MessageBox::showMessageBox(QWidget *parent, +QMessageBox::StandardButton MessageBox:: showMessageBox(QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, diff --git a/src/gui/messagebox.h b/src/gui/messagebox.h index 4a5f0a40c..222d6afc7 100644 --- a/src/gui/messagebox.h +++ b/src/gui/messagebox.h @@ -13,6 +13,8 @@ class MessageBox { // TODO: tudle metodu udelat private a udelat public // metody information, warning atd a ty budou tudle volat // se spravnejma parametrama + // a napsat taky metodu iconifyMessageButtonBox(qmessabebuttonbox) + // ktera nahraje do daneho boxu aktualni ikony static QMessageBox::StandardButton showMessageBox(QWidget *parent, QMessageBox::Icon icon, const QString& title, const QString& text, diff --git a/src/gui/messagesview.cpp b/src/gui/messagesview.cpp index b8b3e016f..c4f6e3710 100644 --- a/src/gui/messagesview.cpp +++ b/src/gui/messagesview.cpp @@ -237,7 +237,7 @@ void MessagesView::openSelectedSourceArticlesExternally() { #if defined(Q_OS_LINUX) if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) { #else - if (!QProcess::startDetached('\"' + browser + '\"' + ' ' + arguments.arg(link))) { + if (!QProcess::startDetached('\"' + browser + "\" \"" + arguments.arg(link) + "\"")) { #endif QMessageBox::critical(this, tr("Problem with starting external web browser"),