refactor: some Application & style things (#5561)

This commit is contained in:
pajlada
2024-08-25 15:33:07 +02:00
committed by GitHub
parent ac88730563
commit 627c735524
41 changed files with 733 additions and 678 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
#include "common/QLogging.hpp"
#include "common/Version.hpp"
#include <QApplication>
#include <QDebug>
#include <QFile>
#include <QtConcurrent>
@@ -44,7 +45,7 @@ NetworkRequest NetworkRequest::caller(const QObject *caller) &&
if (caller)
{
// Caller must be in gui thread
assert(caller->thread() == qApp->thread());
assert(caller->thread() == QApplication::instance()->thread());
this->data->caller = const_cast<QObject *>(caller);
this->data->hasCaller = true;