From 4192d8189cb79f72673e53ff265891fbab4519f1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 20 Nov 2013 08:28:47 -0800 Subject: [PATCH] Making search work without QString Former-commit-id: 6be55dec9cbf97885d7e687fb79b0840a8ee246b --- yomi_base/reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yomi_base/reader.py b/yomi_base/reader.py index 52db538..9da443e 100644 --- a/yomi_base/reader.py +++ b/yomi_base/reader.py @@ -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