mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Don't save the enabled state for a provider if that provider isn't logged in. The enabled state would always get set to false in this case since the checkbox is disabled in the UI, regardless of its actual state.
This commit is contained in:
parent
3beb216d97
commit
75f2550c31
@ -136,8 +136,11 @@ void GlobalSearchSettingsPage::Save() {
|
||||
|
||||
provider_order << provider->id();
|
||||
|
||||
s.setValue("enabled_" + provider->id(),
|
||||
item->data(0, Qt::CheckStateRole).toInt() == Qt::Checked);
|
||||
// Only save the enabled state for this provider if it's logged in.
|
||||
if (item->flags() & Qt::ItemIsUserCheckable) {
|
||||
s.setValue("enabled_" + provider->id(),
|
||||
item->data(0, Qt::CheckStateRole).toInt() == Qt::Checked);
|
||||
}
|
||||
}
|
||||
|
||||
s.setValue("provider_order", provider_order);
|
||||
|
Loading…
x
Reference in New Issue
Block a user