diff --git a/src/persistence/profile.cpp b/src/persistence/profile.cpp index cdf928a89..d9c7077c2 100644 --- a/src/persistence/profile.cpp +++ b/src/persistence/profile.cpp @@ -202,17 +202,11 @@ void Profile::scanProfiles() for (QString toxfile : toxfiles) { if (!inifiles.contains(toxfile)) - importProfile(toxfile); + Settings::getInstance().createPersonal(toxfile); profiles.append(toxfile); } } -void Profile::importProfile(QString name) -{ - assert(!exists(name)); - Settings::getInstance().createPersonal(name); -} - QVector Profile::getProfiles() { return profiles; @@ -464,7 +458,7 @@ void Profile::removeAvatar(const QString &ownerId) bool Profile::exists(QString name) { QString path = Settings::getInstance().getSettingsDirPath() + name; - return QFile::exists(path+".tox") && QFile::exists(path+".ini"); + return QFile::exists(path+".tox"); } bool Profile::isEncrypted() const