mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix two minor bugs
This commit is contained in:
parent
7552fc0ceb
commit
f6ff421aff
|
@ -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);
|
||||
|
|
|
@ -403,7 +403,7 @@ QString Widget::detectProfile()
|
|||
return "";
|
||||
else
|
||||
{
|
||||
Settings::getInstance().setCurrentProfile(profile);
|
||||
Settings::getInstance().switchProfile(profile);
|
||||
return dir.filePath(profile + Core::TOX_EXT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user