Skip to content

Commit 1e4c6e2

Browse files
rupengfeimuyr
rupengfei
authored andcommitted
修复禁用状态下仍会弹出菜单
1 parent 34f4d43 commit 1e4c6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dayu_widgets/combo_box.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def showPopup(self):
142142
# raise NotImplementedError
143143

144144
def eventFilter(self, widget, event):
145-
if widget is self.lineEdit() and widget.isReadOnly():
145+
if widget is self.lineEdit() and widget.isReadOnly() and self.isEnabled():
146146
if event.type() == QtCore.QEvent.MouseButtonPress:
147147
self.showPopup()
148148
return super(MComboBox, self).eventFilter(widget, event)

0 commit comments

Comments
 (0)