diff --git a/src/xal_webview_qt.cpp b/src/xal_webview_qt.cpp index 34516eee..5a943e85 100644 --- a/src/xal_webview_qt.cpp +++ b/src/xal_webview_qt.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "util.h" std::string XalWebViewQt::findWebView() { @@ -35,5 +36,8 @@ std::string XalWebViewQt::show(std::string starturl, std::string endurlprefix) { } auto result = exec_get_stdout(("\"" + webview_path + "\"" + " \"" + starturl + "\" \"" + endurlprefix + "\"").c_str()); trim(result); + if (result.rfind(endurlprefix, 0) != 0) { + GameWindowManager::getManager()->getErrorHandler()->onError("XalWebViewQt", "Failed to open Xboxlive login Window. Please look into the gamelog for more Information"); + } return result; } \ No newline at end of file