Build fix?

This commit is contained in:
Martin Rotter 2017-07-31 09:38:43 +02:00
parent 41a3e9862d
commit f1c929e37e
1 changed files with 5 additions and 2 deletions

View File

@ -163,7 +163,8 @@ void WebFactory::createMenu(QMenu* menu) {
}
menu->clear();
menu->addActions(QList<QAction*>({
QList<QAction*> actions = {
createEngineSettingsAction(tr("Auto-load images"), QWebEngineSettings::AutoLoadImages),
createEngineSettingsAction(tr("JS enabled"), QWebEngineSettings::JavascriptEnabled),
createEngineSettingsAction(tr("JS can open popup windows"), QWebEngineSettings::JavascriptCanOpenWindows),
@ -185,7 +186,9 @@ void WebFactory::createMenu(QMenu* menu) {
createEngineSettingsAction(tr("Print element backgrounds"), QWebEngineSettings::PrintElementBackgrounds),
createEngineSettingsAction(tr("Allow running insecure content"), QWebEngineSettings::AllowRunningInsecureContent),
createEngineSettingsAction(tr("Allow geolocation on insecure origins"), QWebEngineSettings::AllowGeolocationOnInsecureOrigins)
}));
};
menu->addActions(actions);
}
void WebFactory::webEngineSettingChanged(bool enabled) {