diff --git a/src/widget/form/settings/identityform.cpp b/src/widget/form/settings/identityform.cpp index 86bb5aaa2..8d067b606 100644 --- a/src/widget/form/settings/identityform.cpp +++ b/src/widget/form/settings/identityform.cpp @@ -155,6 +155,7 @@ void IdentityForm::onRenameClicked() tr("A profile named \"%1\" already exists. Do you want to erase it?", "rename confirm text").arg(cur))) { QFile::rename(dir.filePath(cur+Core::TOX_EXT), file); + QFile::rename(dir.filePath(cur+".ini"), dir.filePath(name+".ini")); bodyUI->profiles->setItemText(bodyUI->profiles->currentIndex(), name); HistoryKeeper::renameHistory(cur, name); Settings::getInstance().setCurrentProfile(name); diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 457f843ed..82da4332f 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -403,7 +403,7 @@ QString Widget::detectProfile() return ""; else { - Settings::getInstance().setCurrentProfile(profile); + Settings::getInstance().switchProfile(profile); return dir.filePath(profile + Core::TOX_EXT); } }