소스 검색

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):
     def _validateOutputMapName(self):
         """Enable/disable output map name validation according the
         """Enable/disable output map name validation according the
         overwrite state"""
         overwrite state"""
-        if not self.overwrite.IsChecked() or \
+        if not self.overwrite.IsChecked() or not \
            UserSettings.Get(group='cmd', key='overwrite',
            UserSettings.Get(group='cmd', key='overwrite',
                             subkey='enabled'):
                             subkey='enabled'):
             if not self.list.GetValidator().\
             if not self.list.GetValidator().\