Skip to content
Snippets Groups Projects
Commit 6092b9b7 authored by Vincent Texier's avatar Vincent Texier
Browse files

Wot view : fix combobox recall same item with different case

parent 57e00bcf
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import time import time
import datetime import datetime
import logging import logging
from PyQt5.QtWidgets import QWidget from PyQt5.QtWidgets import QWidget, QComboBox
from ..gen_resources.wot_tab_uic import Ui_WotTabWidget 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 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): ...@@ -29,6 +29,9 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
# add combobox events # add combobox events
self.comboBoxSearch.lineEdit().returnPressed.connect(self.search) 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 # add scene events
self.graphicsView.scene().node_clicked.connect(self.draw_graph) self.graphicsView.scene().node_clicked.connect(self.draw_graph)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment