mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 23:02:41 -08:00
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:
1 parent
75a025bedb
commit
7f16ea5aa9
9 files changed
+23
-27
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user