diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 57d3b1a6..fe9abc0c 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -80,13 +80,13 @@ class App(QtCore.QObject): # Get Cmd Line Options cmd_line_shellfile = '' - cmd_line_shellvars = '' + cmd_line_shellvar = '' - cmd_line_help = "FlatCam.py --shellfile=\nFlatCam.py --shellvars= ' + text + '\n') if len(self._history) < 2 or self._history[-2] != text: # don't insert duplicating items - if text[-1] == '\n': - self._history.insert(-1, text[:-1]) - else: - self._history.insert(-1, text) + try: + if text[-1] == '\n': + self._history.insert(-1, text[:-1]) + else: + self._history.insert(-1, text) + except IndexError: + return self._historyIndex = len(self._history) - 1