POP3: Remove the singleton pattern from Settings

Authored by dvratil on Apr 10 2020, 9:56 PM.

Description

POP3: Remove the singleton pattern from Settings

Summary:
It's causing issues with the "new" out-of-process settings
dialog which initializes a new Settings object each time and asserts
when the SettingsHelper Q_GLOBAL_STATIC is already initialized.

Instead just get rid of the singleton pattern and have Settings
object be owned by whomever created it and pass a reference to it
to the classes that need it.

BUG: 419726

Subscribers: mkoller, kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D28732

Details

Committed
dvratilApr 10 2020, 9:58 PM
Differential Revision
D28732: POP3: Remove the singleton pattern from Settings
Parents
R44:f834180f9ec0: Fix compile
Branches
Unknown
Tags
Unknown