Skip to content

Commit

Permalink
Set organisation explicitly
Browse files Browse the repository at this point in the history
Otherwise QSettings fails to find/allocate its place in the Windows
registry.
  • Loading branch information
KitsuneRal committed Dec 27, 2024
1 parent 82ae218 commit 203c6b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autotests/testsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ using Quotient::Settings, Quotient::SettingsGroup, Quotient::AccountSettings;
class TestSettings : public QObject {
Q_OBJECT

public:
static void initMain();

private slots:
void initTestCase();
void accountSettings_data() const;
Expand All @@ -21,6 +24,8 @@ private slots:
QSettings qSettings{};
};

void TestSettings::initMain() { QCoreApplication::setOrganizationName(u"Quotient"_s); }

void TestSettings::initTestCase()
{
qSettings.remove(AccountsGroupName);
Expand Down

0 comments on commit 203c6b2

Please sign in to comment.