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:
parent
7fb7ae1fc8
commit
7552fc0ceb
|
@ -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())) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user