Fix build.

This commit is contained in:
Martin Rotter 2017-07-28 10:04:30 +02:00
parent f34c25609c
commit 6866d762ae
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ void MessagePreviewer::createConnections() {
SETTING(Browser::OpenLinksInExternalBrowserRightAway)).toBool();
if (open_externally_now) {
WebFactory::instance()->openUrlInExternalBrowser(url.toString());
qApp->web()->openUrlInExternalBrowser(url.toString());
}
else {
@ -59,7 +59,7 @@ void MessagePreviewer::createConnections() {
}
if (box.clickedButton() == btn_open) {
WebFactory::instance()->openUrlInExternalBrowser(url.toString());
qApp->web()->openUrlInExternalBrowser(url.toString());
}
else if (box.clickedButton() == btn_download) {

View file

@ -268,7 +268,7 @@ int TabWidget::addBrowser(bool move_after_current, bool make_active, const QUrl&
#else
Q_UNUSED(move_after_current)
Q_UNUSED(make_active)
WebFactory::instance()->openUrlInExternalBrowser(initial_url.toString());
qApp->web()->openUrlInExternalBrowser(initial_url.toString());
return -1;
#endif
}