External browser testing...
This commit is contained in:
parent
2c9074b2e8
commit
15b2bfefbc
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user