Making search work without QString
Former-commit-id: 6be55dec9cbf97885d7e687fb79b0840a8ee246b
This commit is contained in:
parent
46c99d7efb
commit
4192d8189c
@ -344,8 +344,8 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
|||||||
|
|
||||||
|
|
||||||
def findText(self, text):
|
def findText(self, text):
|
||||||
content = self.textContent.toPlainText()
|
content = unicode(self.textContent.toPlainText())
|
||||||
index = content.indexOf(text, self.state.searchPosition)
|
index = content.find(unicode(text), self.state.searchPosition)
|
||||||
|
|
||||||
if index == -1:
|
if index == -1:
|
||||||
wrap = self.state.searchPosition != 0
|
wrap = self.state.searchPosition != 0
|
||||||
|
Loading…
Reference in New Issue
Block a user