Skip to content

Commit

Permalink
change: Webkit. Запрет отображения страницы ошибки (Qt >= 5.14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Funcy-dcm committed Apr 17, 2020
1 parent 418f7bc commit 0550c8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/application/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,8 @@ void MainWindow::loadSettings()
QWebSettings::globalSettings()->setAttribute(
QWebSettings::PluginsEnabled, pluginsEnable_);
QWebSettings::globalSettings()->setMaximumPagesInCache(maxPagesInCache_);
#if QT_VERSION >= 0x050D02
#if QT_VERSION >= 0x050e00

QWebSettings::globalSettings()->setAttribute(
QWebSettings::ErrorPageEnabled, false);
#endif
Expand Down

0 comments on commit 0550c8f

Please sign in to comment.