From 416267f92986a0e332e349da5419a2dfd47fed83 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Tue, 8 Oct 2019 09:16:37 +0200 Subject: [PATCH] PICARD-1624: Fix saving options without AUTO_DETECT_DRIVES Since 995281f saving options without CD auto detection available caused an error. --- picard/ui/options/cdlookup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/picard/ui/options/cdlookup.py b/picard/ui/options/cdlookup.py index 199ae7826..f24df72fa 100644 --- a/picard/ui/options/cdlookup.py +++ b/picard/ui/options/cdlookup.py @@ -70,9 +70,12 @@ class CDLookupOptionsPage(OptionsPage): def save(self): if AUTO_DETECT_DRIVES: config.setting["cd_lookup_device"] = self.ui.cd_lookup_device.currentText() + drives = self.drives else: - config.setting["cd_lookup_device"] = self.ui.cd_lookup_device.text() - self.tagger.window.update_cd_lookup_drives(self.drives) + selected_drive = self.ui.cd_lookup_device.text() + config.setting["cd_lookup_device"] = selected_drive + drives = [selected_drive] + self.tagger.window.update_cd_lookup_drives(drives) register_options_page(CDLookupOptionsPage)