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

Don't use QVector::removeAll

It's only available on recent Qt versions
This commit is contained in:
tux3 2015-06-04 22:35:29 +02:00
parent 3878f88d06
commit 9e65cfde5c
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -275,7 +275,14 @@ void Profile::remove()
isRemoved = true;
qDebug() << "Removing profile"<<name;
profiles.removeAll(name);
for (int i=0; i<profiles.size(); i++)
{
if (profiles[i] == name)
{
profiles.removeAt(i);
i--;
}
}
QString path = Settings::getSettingsDirPath() + QDir::separator() + name;
QFile::remove(path+".tox");
QFile::remove(path+".ini");