Miscellaneous tidying

This commit is contained in:
David Rowe 2020-10-03 17:01:46 +13:00
parent 3e94a034ca
commit cd7e1d0865
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ public:
public slots: public slots:
/**jsdoc /**jsdoc
* Display a web page in an Interface browser window. * Display a web page in an Interface browser window or the tablet.
* @function About.openUrl * @function About.openUrl
* @param {string} url - The URL of the web page you want to view in Interface. * @param {string} url - The URL of the web page you want to view in Interface.
*/ */

View file

@ -650,7 +650,7 @@ void WindowScriptingInterface::openWebBrowser(const QString& url) {
QMetaObject::invokeMethod(this, "openWebBrowser", Q_ARG(const QString&, url)); QMetaObject::invokeMethod(this, "openWebBrowser", Q_ARG(const QString&, url));
return; return;
} }
auto offscreenUi = DependencyManager::get<OffscreenUi>(); auto offscreenUi = DependencyManager::get<OffscreenUi>();
offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) { offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) {
if (!url.isEmpty()) { if (!url.isEmpty()) {