Fix warnings with COMPAT signal after Qt6 upgrade

* Fixes a specific warning that spams the console due to a deprecated signal that was used to indicate checkboxes state changed.
* Converted all QCheckBox::stateChanged(int) to QCheckBox::toggled(bool). All functionality still works as intended.
This commit is contained in:
Jonathan White authored and Janek Bevendorff committed 2026-10-21 10:43:26 +02:00
1 parent 75a025bedb
commit 7f16ea5aa9
9 files changed
+23 -27

No files matched your search

+2 -2
View File
@@ -462,8 +462,8 @@ QSharedPointer<CompositeKey> DatabaseOpenWidget::buildDatabaseKey()
legacyWarning.setDefaultButton(QMessageBox::Ok);
legacyWarning.setCheckBox(new QCheckBox(tr("Don't show this warning again")));
connect(legacyWarning.checkBox(), &QCheckBox::stateChanged, this, [](int state) {
config()->set(Config::Messages_NoLegacyKeyFileWarning, state == Qt::CheckState::Checked);
connect(legacyWarning.checkBox(), &QCheckBox::toggled, this, [](bool checked) {
config()->set(Config::Messages_NoLegacyKeyFileWarning, checked);
});
legacyWarning.exec();