From 39fe1b8e9f8ec6967e8fe1caa53aacf48ea1d8c3 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 23 Feb 2018 15:42:50 +0200 Subject: [PATCH] QComboBox.findData() compatible with pyside --- src/bitmessageqt/support.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index 2d6b1f1e..c4ab0c55 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -99,10 +99,11 @@ def createSupportMessage(myapp): return myapp.ui.lineEditSubject.setText(SUPPORT_SUBJECT) - addrIndex = myapp.ui.comboBoxSendFrom.findData( - address, QtCore.Qt.UserRole, - QtCore.Qt.MatchFixedString | QtCore.Qt.MatchCaseSensitive - ) + # addrIndex = myapp.ui.comboBoxSendFrom.findData( + # address, QtCore.Qt.UserRole, + # QtCore.Qt.MatchFixedString | QtCore.Qt.MatchCaseSensitive + # ) + addrIndex = myapp.ui.comboBoxSendFrom.findData(address) if addrIndex == -1: # something is very wrong return myapp.ui.comboBoxSendFrom.setCurrentIndex(addrIndex)