瀏覽代碼

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

Tomas Zigo 4 年之前
父節點
當前提交
d0d6a5143c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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().\