[bugfix] missing split for event dirty flag (*) in event_table

This commit is contained in:
Marcel Paffrath 2019-02-28 16:39:53 +01:00
parent 16b469ff67
commit 4dfcdb41ec

View File

@ -2986,7 +2986,7 @@ class MainWindow(QMainWindow):
def cell_clicked(row=None, column=None): def cell_clicked(row=None, column=None):
table = self.project._table table = self.project._table
event = self.project.getEventFromPath(table[row][1].text()) event = self.project.getEventFromPath(table[row][1].text().split('*')[0])
if column == 0: if column == 0:
self.remove_event(event) self.remove_event(event)
@ -2994,7 +2994,7 @@ class MainWindow(QMainWindow):
# connected to cell changes in event table # connected to cell changes in event table
# changes attributes of the corresponding event # changes attributes of the corresponding event
table = self.project._table table = self.project._table
event = self.project.getEventFromPath(table[row][1].text()) event = self.project.getEventFromPath(table[row][1].text().split('*')[0])
if column == 9 or column == 10: if column == 9 or column == 10:
# toggle checked states (exclusive) # toggle checked states (exclusive)
item_ref = table[row][9] item_ref = table[row][9]