1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix crash when saving before start

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-30 21:26:37 +02:00
parent 27d5293d90
commit a3b20ee81e

View File

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