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

Fix the segfault fix

This commit is contained in:
Dubslow 2015-01-23 08:18:46 -06:00
parent 7fb7ae1fc8
commit 7552fc0ceb
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
2 changed files with 4 additions and 1 deletions

View File

@ -1220,6 +1220,9 @@ bool Core::loadConfiguration(QString path)
void Core::saveConfiguration()
{
if (!isReady())
return;
QString dir = Settings::getSettingsDirPath();
QDir directory(dir);
if (!directory.exists() && !directory.mkpath(directory.absolutePath())) {

View File

@ -230,7 +230,7 @@ void Core::checkEncryptedHistory()
void Core::saveConfiguration(const QString& path)
{
if (!tox)
if (!isReady())
{
qWarning() << "Core::saveConfiguration: Tox not started, aborting!";
return;