1

Making search work without QString

Former-commit-id: 6be55dec9cbf97885d7e687fb79b0840a8ee246b
This commit is contained in:
Alex Yatskov 2013-11-20 08:28:47 -08:00
parent 46c99d7efb
commit 4192d8189c

View File

@ -344,8 +344,8 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
def findText(self, text):
content = self.textContent.toPlainText()
index = content.indexOf(text, self.state.searchPosition)
content = unicode(self.textContent.toPlainText())
index = content.find(unicode(text), self.state.searchPosition)
if index == -1:
wrap = self.state.searchPosition != 0