From 4ed83e7c87aee56615a71e265c861e7931244023 Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 27 Jul 2019 14:51:38 +0100 Subject: [PATCH] More robust handling of project change --- allzpark/view.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/allzpark/view.py b/allzpark/view.py index 72b63c2..c89a009 100644 --- a/allzpark/view.py +++ b/allzpark/view.py @@ -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):