Browse Source

Don't use QVector::removeAll

It's only available on recent Qt versions
pull/1793/head
tux3 10 years ago
parent
commit
9e65cfde5c
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 9
      src/profile.cpp

9
src/profile.cpp

@ -275,7 +275,14 @@ void Profile::remove() @@ -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…
Cancel
Save