diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7fc19e6..73cfd41 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -659,6 +659,15 @@ void MainWindow::checkLoadedCorrectly() { qWarning()<<"Test 1 found"<<result.toString(); loadingQuirk("test1"); + }else if(webEngine->title().contains("Error",Qt::CaseInsensitive)) + { + utils::delete_cache(webEngine->page()->profile()->cachePath()); + utils::delete_cache(webEngine->page()->profile()->persistentStoragePath()); + settings.setValue("useragent",defaultUserAgentStr); + utils * util = new utils(this); + util->DisplayExceptionErrorDialog("test1 handleWebViewTitleChanged(title) title: Error, Resetting UA, Quiting!\nUA: "+settings.value("useragent","DefaultUA").toString()); + + quitAction->trigger(); }else{ qWarning()<<"Test 1 Loaded correctly value:"<<result.toString(); } |