mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge remote-tracking branch 'PKEv/correct_remove_profile'
This commit is contained in:
commit
dabb346c3a
|
@ -158,12 +158,15 @@ Profile::~Profile()
|
|||
saveToxSave();
|
||||
delete core;
|
||||
delete coreThread;
|
||||
if (!isRemoved)
|
||||
{
|
||||
Settings::getInstance().savePersonal(this);
|
||||
Settings::getInstance().sync();
|
||||
ProfileLocker::assertLock();
|
||||
assert(ProfileLocker::getCurLockName() == name);
|
||||
ProfileLocker::unlock();
|
||||
}
|
||||
}
|
||||
|
||||
QVector<QString> Profile::getFilesByExt(QString extension)
|
||||
{
|
||||
|
@ -368,6 +371,7 @@ void Profile::remove()
|
|||
}
|
||||
}
|
||||
QString path = Settings::getInstance().getSettingsDirPath() + name;
|
||||
ProfileLocker::unlock();
|
||||
QFile::remove(path+".tox");
|
||||
QFile::remove(path+".ini");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user