Load/Save settings in main.cpp

This commit is contained in:
Rasmus Karlsson 2017-01-23 09:49:30 +01:00
parent 1e6e395623
commit b47ebc0008

View file

@ -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;
}