1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Minor UI fix

This commit is contained in:
agilob 2015-11-12 21:51:43 +00:00
parent d3548f7a80
commit 6d440e9c8c
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -18,6 +18,9 @@ AboutUser::AboutUser(ToxId &toxId, QWidget *parent) :
QString dir = Settings::getInstance().getAutoAcceptDir(this->toxId);
ui->autoaccept->setChecked(!dir.isEmpty());
ui->selectSaveDir->setEnabled(ui->autoaccept->isChecked());
if(ui->autoaccept->isChecked())
ui->selectSaveDir->setText(Settings::getInstance().getAutoAcceptDir(this->toxId));
}
void AboutUser::setFriend(Friend *f)
@ -53,7 +56,7 @@ void AboutUser::onAutoAcceptClicked()
"popup title"), dir);
ui->autoaccept->setChecked(true);
Settings::getInstance().setAutoAcceptDir(this->toxId, dir);
ui->selectSaveDir->setText(Settings::getInstance().getAutoAcceptDir(this->toxId));
ui->selectSaveDir->setText(Settings::getInstance().getAutoAcceptDir(this->toxId));
}
Settings::getInstance().saveGlobal();
ui->selectSaveDir->setEnabled(ui->autoaccept->isChecked());