From 6092b9b7336ea3fb2f6340a7b684f373bcdd9857 Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Mon, 26 Jan 2015 23:10:59 +0100 Subject: [PATCH] Wot view : fix combobox recall same item with different case --- src/cutecoin/gui/wot_tab.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index 94785709..4b6bedd1 100644 --- a/src/cutecoin/gui/wot_tab.py +++ b/src/cutecoin/gui/wot_tab.py @@ -3,7 +3,7 @@ import time import datetime import logging -from PyQt5.QtWidgets import QWidget +from PyQt5.QtWidgets import QWidget, QComboBox from ..gen_resources.wot_tab_uic import Ui_WotTabWidget from cutecoin.gui.views.wot import NODE_STATUS_HIGHLIGHTED, NODE_STATUS_SELECTED, NODE_STATUS_OUT, ARC_STATUS_STRONG, ARC_STATUS_WEAK @@ -29,6 +29,9 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): #Â add combobox events self.comboBoxSearch.lineEdit().returnPressed.connect(self.search) + #Â To fix a recall of the same item with different case, + #Â the edited text is not added in the item list + self.comboBoxSearch.setInsertPolicy(QComboBox.NoInsert) #Â add scene events self.graphicsView.scene().node_clicked.connect(self.draw_graph) -- GitLab