force crash on account settings opening

This commit is contained in:
Gaelle Braud 2025-12-01 11:38:49 +01:00
parent f405754e24
commit 031e47a5ce
3 changed files with 10 additions and 0 deletions

View file

@ -39,6 +39,7 @@
#include "tool/providers/AvatarProvider.hpp"
#include <limits.h>
#include <signal.h>
#include <QClipboard>
#include <QCryptographicHash>
@ -2287,3 +2288,7 @@ bool Utils::stringMatchFormat(QString toMatch, QRegularExpression regExp) {
auto match = regExp.match(toMatch);
return match.hasMatch();
}
void Utils::forceCrash() {
raise(SIGSEGV);
}

View file

@ -189,6 +189,9 @@ public:
Q_INVOKABLE static bool stringMatchFormat(QString toMatch, QRegularExpression regExp);
// DEBUG
Q_INVOKABLE static void forceCrash();
// QDir findDirectoryByName(QString startPath, QString name);
static QString getApplicationProduct();

View file

@ -32,6 +32,8 @@ AbstractSettingsLayout {
}
]
Component.onCompleted: UtilsCpp.forceCrash()
property alias account: mainItem.model
// Account parameters