Skip to content

Commit 1fd8762

Browse files
Fix crash #1218
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
1 parent d93e8eb commit 1fd8762

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manuskript/models/plotModel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ def _path(item):
351351
return [self.translate("Plot")] + _path(self.getItem(self.rowIndex, Plot.name)) + [self.translate(self.searchColumnLabel(column))]
352352

353353
def searchData(self, column):
354-
return self.getItem(self.rowIndex, column).text()
354+
item = self.getItem(self.rowIndex, column)
355+
return item.text() if item else None
355356

356357
def plotStepPath(self, plotName, plotStepName, column):
357358
return [self.translate("Plot"), plotName, plotStepName, self.translate(self.searchColumnLabel(column))]

0 commit comments

Comments
 (0)