Skip to content

Commit

Permalink
fix: 修复偶发的找不到Qt绑定的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
muyr authored and loonghao committed Jun 14, 2024
1 parent 9294994 commit 422405e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dayu_widgets/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import re

# Import third-party modules
from Qt import QtCompat
from Qt import QtCore
from Qt import QtGui
from Qt import QtWidgets
from Qt.QtCompat import isValid
import six

# Import local modules
Expand Down Expand Up @@ -259,7 +259,7 @@ def mouseMoveEvent(self, event):
action = None

self.setActiveAction(action)
if action and isValid(action) and not action.isSeparator():
if action and QtCompat.isValid(action) and not action.isSeparator():

def ensureVisible():
self.delayTimer.timeout.disconnect()
Expand Down

0 comments on commit 422405e

Please sign in to comment.