Commits

Yuya Nishihara  committed 9a74ca4

qscilib: correct initial state of autoUseTabs checkbox on non-English env

  • Participants
  • Parent commits 3c9d393
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qscilib.py

                     a = tabindentsmenu.addAction(n)
                     a.setCheckable(True)
                     a.setChecked(self.indentationsUseTabs() == m or \
-                        (self.autoUseTabs and n == 'Auto'))
+                        (self.autoUseTabs and m == -1))
                     a.triggered.connect(lambda: self.setIndentationsUseTabs(m))
                 mkaction(name, mode)
             acmenu = QMenu(_('Auto-Complete'), self)