forked from osmocom/wireshark
Apparently, WS_WIKI_URL() can work in Qt C++ code.
(cherry picked from commit 32b64c1694
)
This commit is contained in:
parent
9b437e3c2d
commit
b45aad9be2
|
@ -3919,7 +3919,7 @@ void MainWindow::on_actionContextWikiProtocolPage_triggered()
|
|||
|
||||
if (ret != QMessageBox::Yes) return;
|
||||
|
||||
QUrl wiki_url = QString(WS_WIKI_HOME_URL "/" "/Protocols/%1").arg(proto_abbrev);
|
||||
QUrl wiki_url = QString(WS_WIKI_URL("Protocols/%1")).arg(proto_abbrev);
|
||||
QDesktopServices::openUrl(wiki_url);
|
||||
}
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ void ProtoTree::ctxOpenUrlWiki()
|
|||
|
||||
if (ret != QMessageBox::Yes) return;
|
||||
|
||||
url = QString(WS_WIKI_HOME_URL "/Protocols/%1").arg(proto_abbrev);
|
||||
url = QString(WS_WIKI_URL("Protocols/%1")).arg(proto_abbrev);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue