mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Don't triple save on exit
This commit is contained in:
parent
d90ce6b45f
commit
12bba9fe68
@ -108,7 +108,6 @@ Core::Core(Camera* cam, QThread *coreThread, QString loadPath) :
|
||||
Core::~Core()
|
||||
{
|
||||
if (tox) {
|
||||
saveConfiguration();
|
||||
toxav_kill(toxav);
|
||||
tox_kill(tox);
|
||||
}
|
||||
|
@ -36,11 +36,6 @@ Settings::Settings() :
|
||||
load();
|
||||
}
|
||||
|
||||
Settings::~Settings()
|
||||
{
|
||||
save();
|
||||
}
|
||||
|
||||
Settings& Settings::getInstance()
|
||||
{
|
||||
static Settings settings;
|
||||
|
@ -26,7 +26,7 @@ class Settings : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
static Settings& getInstance();
|
||||
~Settings();
|
||||
~Settings() = default;
|
||||
|
||||
void executeSettingsDialog(QWidget* parent);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user