Skip to content

Commit

Permalink
修复禁用状态下仍会弹出菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
rupengfei authored and muyr committed Oct 28, 2024
1 parent 34f4d43 commit 1e4c6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dayu_widgets/combo_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def showPopup(self):
# raise NotImplementedError

def eventFilter(self, widget, event):
if widget is self.lineEdit() and widget.isReadOnly():
if widget is self.lineEdit() and widget.isReadOnly() and self.isEnabled():
if event.type() == QtCore.QEvent.MouseButtonPress:
self.showPopup()
return super(MComboBox, self).eventFilter(widget, event)
Expand Down

0 comments on commit 1e4c6e2

Please sign in to comment.