1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-02 09:00:05 +01:00
parent d90ce6b45f
commit 12bba9fe68
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
3 changed files with 1 additions and 7 deletions

View File

@ -108,7 +108,6 @@ Core::Core(Camera* cam, QThread *coreThread, QString loadPath) :
Core::~Core()
{
if (tox) {
saveConfiguration();
toxav_kill(toxav);
tox_kill(tox);
}

View File

@ -36,11 +36,6 @@ Settings::Settings() :
load();
}
Settings::~Settings()
{
save();
}
Settings& Settings::getInstance()
{
static Settings settings;

View File

@ -26,7 +26,7 @@ class Settings : public QObject
Q_OBJECT
public:
static Settings& getInstance();
~Settings();
~Settings() = default;
void executeSettingsDialog(QWidget* parent);