Explorar el Código

wxGUI/import_export: fix output map overwriting if global overwrite setting is allowed (#1029)

Tomas Zigo hace 4 años
padre
commit
d0d6a5143c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gui/wxpython/modules/import_export.py

+ 1 - 1
gui/wxpython/modules/import_export.py

@@ -264,7 +264,7 @@ class ImportDialog(wx.Dialog):
     def _validateOutputMapName(self):
         """Enable/disable output map name validation according the
         overwrite state"""
-        if not self.overwrite.IsChecked() or \
+        if not self.overwrite.IsChecked() or not \
            UserSettings.Get(group='cmd', key='overwrite',
                             subkey='enabled'):
             if not self.list.GetValidator().\