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

fix(ui): fix auto-accept directory setup display

Fixes #5917
This commit is contained in:
Katherine Mantel 2019-12-01 05:08:55 -05:00 committed by Anthony Bilinski
parent 9b23abc6de
commit 8c5cab935c
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -92,7 +92,7 @@ void AboutFriendForm::onAutoAcceptDirClicked()
void AboutFriendForm::onAutoAcceptDirChanged(const QString& path)
{
const bool enabled = path.isNull();
const bool enabled = !path.isNull();
ui->autoacceptfile->setChecked(enabled);
ui->selectSaveDir->setEnabled(enabled);
ui->selectSaveDir->setText(enabled ? path : tr("Auto accept for this contact is disabled"));