Skip to content

Commit c5de33d

Browse files
committed
QComboBox.findData() compatible with pyside
1 parent 3202082 commit c5de33d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bitmessageqt/support.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import sys
77
import time
88

9-
from qtpy import QtCore
10-
119
import account
1210
import defaults
1311
import network.stats
@@ -117,9 +115,11 @@ def createSupportMessage(myapp):
117115
return
118116

119117
myapp.ui.lineEditSubject.setText(SUPPORT_SUBJECT)
120-
addrIndex = myapp.ui.comboBoxSendFrom.findData(
121-
address, QtCore.Qt.UserRole,
122-
QtCore.Qt.MatchFixedString | QtCore.Qt.MatchCaseSensitive)
118+
# addrIndex = myapp.ui.comboBoxSendFrom.findData(
119+
# address, QtCore.Qt.UserRole,
120+
# QtCore.Qt.MatchFixedString | QtCore.Qt.MatchCaseSensitive
121+
# )
122+
addrIndex = myapp.ui.comboBoxSendFrom.findData(address)
123123
if addrIndex == -1: # something is very wrong
124124
return
125125
myapp.ui.comboBoxSendFrom.setCurrentIndex(addrIndex)

0 commit comments

Comments
 (0)