From b47ebc0008cf64e88aea0d42735086bee4d94a09 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Mon, 23 Jan 2017 09:49:30 +0100 Subject: [PATCH] Load/Save settings in main.cpp --- main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 74744f87e..09e8c016c 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include "emojis.h" #include "ircmanager.h" #include "resources.h" +#include "settings/settings.h" #include "widgets/mainwindow.h" #include "windows.h" @@ -17,6 +18,7 @@ main(int argc, char *argv[]) { QApplication a(argc, argv); + settings::Settings::getInstance().load(); Resources::load(); Emojis::loadEmojis(); @@ -27,5 +29,9 @@ main(int argc, char *argv[]) IrcManager::connect(); - return a.exec(); + int ret = a.exec(); + + settings::Settings::getInstance().save(); + + return ret; }