Do not export if user presses cancel
This commit is contained in:
@@ -746,14 +746,16 @@ class MainFrame(wx.Frame):
|
|||||||
CopySelectDialog.copyFormatMultiBuy: self.clipboardMultiBuy,
|
CopySelectDialog.copyFormatMultiBuy: self.clipboardMultiBuy,
|
||||||
CopySelectDialog.copyFormatEfs: self.clipboardEfs}
|
CopySelectDialog.copyFormatEfs: self.clipboardEfs}
|
||||||
dlg = CopySelectDialog(self)
|
dlg = CopySelectDialog(self)
|
||||||
dlg.ShowModal()
|
btnPressed = dlg.ShowModal()
|
||||||
selected = dlg.GetSelected()
|
|
||||||
options = dlg.GetOptions()
|
if btnPressed == wx.ID_OK:
|
||||||
|
selected = dlg.GetSelected()
|
||||||
|
options = dlg.GetOptions()
|
||||||
|
|
||||||
settings = SettingsProvider.getInstance().getSettings("pyfaExport")
|
settings = SettingsProvider.getInstance().getSettings("pyfaExport")
|
||||||
settings["format"] = selected
|
settings["format"] = selected
|
||||||
settings["options"] = options
|
settings["options"] = options
|
||||||
CopySelectDict[selected](options.get(selected))
|
CopySelectDict[selected](options.get(selected))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
|||||||
Reference in New Issue
Block a user