Skip to content

Commit

Permalink
More robust handling of project change
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed Jul 27, 2019
1 parent cc5dd1f commit 4ed83e7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions allzpark/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,7 @@ def onEditingFinished(self):
self._completer.setCompletionPrefix(self.text())

suggested = self._completer.currentCompletion()

if not suggested or suggested == self._current:
self.resetText()
self.parent().setFocus()
else:
self.setText(suggested)
self.changed.emit(suggested)
self._current = suggested
self.changed.emit(suggested)


class FullCommand(QtWidgets.QWidget):
Expand Down

0 comments on commit 4ed83e7

Please sign in to comment.