logic: Fixed automatic update check only works on Qt thread

This commit is contained in:
Eberhard Graether
2017-08-23 16:15:22 +02:00
parent 0a3edfdcbc
commit 1227ad313e
4 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -53,6 +53,7 @@ void QtUpdateChecker::check(bool force)
urlString += ("&platform=" + platformString + "bit").c_str();
// version
// Version::setApplicationVersion(Version::fromString("2017.3.10")); // for debugging
urlString += ("&version=" + Version::getApplicationVersion().toDisplayString()).c_str();
// license
@@ -147,5 +148,10 @@ void QtUpdateChecker::check(bool force)
void QtUpdateChecker::checkUpdate()
{
check();
m_onQtThread(
[this]()
{
check();
}
);
}