Don't segfault on shutdown

Use the current QPalette for user color instead of getting the platform
theme from QML, which caused segfaults.
This commit is contained in:
Tobias Fella
2021-09-30 18:42:19 +02:00
parent 886ee1f5b6
commit e9f935609f
2 changed files with 5 additions and 24 deletions

View File

@@ -5,14 +5,8 @@
#include <QObject>
#include "room.h"
#include "user.h"
namespace Kirigami
{
class PlatformTheme;
}
using namespace Quotient;
class NeoChatUser : public User