From 8c5cab935ccf3d902d0a9c10509798bbe236a86c Mon Sep 17 00:00:00 2001 From: Katherine Mantel Date: Sun, 1 Dec 2019 05:08:55 -0500 Subject: [PATCH] fix(ui): fix auto-accept directory setup display Fixes #5917 --- src/widget/about/aboutfriendform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/about/aboutfriendform.cpp b/src/widget/about/aboutfriendform.cpp index 4514d9ccb..323242caf 100644 --- a/src/widget/about/aboutfriendform.cpp +++ b/src/widget/about/aboutfriendform.cpp @@ -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"));