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:
parent
27d5293d90
commit
a3b20ee81e
6
core.cpp
6
core.cpp
|
@ -668,6 +668,12 @@ void Core::loadConfiguration()
|
||||||
|
|
||||||
void Core::saveConfiguration()
|
void Core::saveConfiguration()
|
||||||
{
|
{
|
||||||
|
if (!tox)
|
||||||
|
{
|
||||||
|
qWarning() << "Core::saveConfiguration: Tox not started, aborting!";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QString path = Settings::getSettingsDirPath();
|
QString path = Settings::getSettingsDirPath();
|
||||||
|
|
||||||
QDir directory(path);
|
QDir directory(path);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user