Switch to unified view

a/src/python/samples/recollgui/qrecoll.py b/src/python/samples/recollgui/qrecoll.py
...
...
134
134
135
    def fetchMore(self, parent):
135
    def fetchMore(self, parent):
136
        #print "RecollQuery.fetchMore:"
136
        #print "RecollQuery.fetchMore:"
137
        self.beginInsertRows(QtCore.QModelIndex(), len(self.docs), \
137
        self.beginInsertRows(QtCore.QModelIndex(), len(self.docs), \
138
                             len(self.docs) + self.pagelen)
138
                             len(self.docs) + self.pagelen)
139
        count = 0
139
        for count in range(self.pagelen):
140
        while self.query.next >= 0 and self.query.next < self.totres \
140
            try:
141
                  and count < self.pagelen:
142
            #print "Got: ", title.encode("utf-8")
143
            self.docs.append(self.query.fetchone())
141
                self.docs.append(self.query.fetchone())
144
            count += 1
142
            except:
143
                break
145
        self.endInsertRows()
144
        self.endInsertRows()
146
145
147
146
148
###
147
###
149
#  UI interaction code
148
#  UI interaction code