chatview: correctly handle clicked links in the webview

Change-Id: I16edca89fe0e66fb3845cc0420c251c70c12bdec
Gitlab: #11
This commit is contained in:
Sébastien Blin
2020-08-29 13:45:07 -04:00
committed by Adrien Béraud
parent 214d9add58
commit 06fbda77e0
3 changed files with 16 additions and 0 deletions

View File

@@ -332,6 +332,14 @@ MessagesAdapter::openFile(const QString &arg)
}
}
void
MessagesAdapter::openUrl(const QString &url)
{
if (!QDesktopServices::openUrl(url)) {
qDebug() << "Couldn't open url: " << url;
}
}
void
MessagesAdapter::acceptFile(const QString &arg)
{