From a3b20ee81eba7e0f0527d11a4f3893eb23e1e58f Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Mon, 30 Jun 2014 21:26:37 +0200 Subject: [PATCH] Fix crash when saving before start --- core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core.cpp b/core.cpp index ccc0fe355..0999e211b 100644 --- a/core.cpp +++ b/core.cpp @@ -668,6 +668,12 @@ void Core::loadConfiguration() void Core::saveConfiguration() { + if (!tox) + { + qWarning() << "Core::saveConfiguration: Tox not started, aborting!"; + return; + } + QString path = Settings::getSettingsDirPath(); QDir directory(path);