External browser testing...

This commit is contained in:
Martin Rotter 2014-01-20 19:10:29 +01:00
parent 2c9074b2e8
commit 15b2bfefbc
3 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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"),