diff --git a/gui/copySelectDialog.py b/gui/copySelectDialog.py index 49ebb6ac1..26910f466 100644 --- a/gui/copySelectDialog.py +++ b/gui/copySelectDialog.py @@ -78,7 +78,7 @@ class CopySelectDialog(wx.Dialog): bsizer = wx.BoxSizer(wx.VERTICAL) self.options[formatId] = {} - for optId, optName, optDesc, optDefault in formatOptions: + for optId, optName, optDesc, _ in formatOptions: checkbox = wx.CheckBox(self, -1, optName) self.options[formatId][optId] = checkbox if self.settings['options'].get(formatId, {}).get(optId, defaultFormatOptions.get(formatId, {}).get(optId)): @@ -104,7 +104,7 @@ class CopySelectDialog(wx.Dialog): def toggleOptions(self): for formatId in self.options: - for optId, checkbox in self.options[formatId].items(): + for checkbox in self.options[formatId].values(): checkbox.Enable(self.GetSelected() == formatId) def GetSelected(self): diff --git a/gui/mainFrame.py b/gui/mainFrame.py index a37f1afd0..d5bc8f0e9 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -747,7 +747,7 @@ class MainFrame(wx.Frame): CopySelectDialog.copyFormatEfs: self.clipboardEfs} dlg = CopySelectDialog(self) btnPressed = dlg.ShowModal() - + if btnPressed == wx.ID_OK: selected = dlg.GetSelected() options = dlg.GetOptions()