|
|
@@ -94,13 +94,14 @@ class AggAnalyseModeAndView(QWidget, Ui_Form):
|
|
|
currentIndex = self.config['currentIndex']
|
|
|
if (direction < 0 and currentIndex == 1) or (direction > 0 and currentIndex == self.totalNum):
|
|
|
return
|
|
|
- self.config['currentIndex'] = self.config['currentIndex'] + direction
|
|
|
+ currentIndex = currentIndex + direction
|
|
|
+ self.config['currentIndex'] = currentIndex
|
|
|
|
|
|
self.contentList.clear()
|
|
|
self.contentList.addItems(self.contentDict[currentIndex]["contentLines"])
|
|
|
self.contentList.scrollToTop()
|
|
|
self.msg.setText("总数量:%d,当前位置:%d,数量:%d" % (
|
|
|
- self.totalNum, self.config['currentIndex'], self.contentDict[currentIndex]["count"]))
|
|
|
+ self.totalNum, currentIndex, self.contentDict[currentIndex]["count"]))
|
|
|
# 保存历史使用记录
|
|
|
utils.saveJson(CONFIG_PATH, self.config)
|
|
|
|