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:
parent
3878f88d06
commit
9e65cfde5c
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user