Commit d2fb7787 authored by xuanweiace's avatar xuanweiace

fix bug

parent 4f04de43
This diff is collapsed.
......@@ -249,6 +249,7 @@ class ProjectContext:
def history_pop(self)-> OperateRecord:
if len(self.history_records) == 0:
return None
print(f"[history_pop] {self.history_records}, {self.records_pos}")
self.records_pos -= 1
return self.history_records[self.records_pos]
......
......@@ -113,7 +113,8 @@ class Operation_Dialog(QDialog, Ui_Dialog):
# 这些是只有【modify】才需要检测的
if self.comboBox_2.currentText() == "修改一行":
try:
suggest = self.mainWindow.projectContext.all_elements[row_number].suggest
suggest = self.mainWindow.projectContext.all_elements[row_number-1].suggest
print("suggest:", suggest)
# 如果当前行是旁白
if suggest is not None and "插入旁白" in suggest:
assert self.comboBox.currentText() == "旁白"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment