Skip to content

Commit 10ffdc9

Browse files
committed
Gmoccapy, offsetpage: Missing pref file entries for comments default to system name instead of zero
1 parent 9b0fa3d commit 10ffdc9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/python/gladevcp/offsetpage_widget.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,10 @@ def on_selection_changed(self, treeselection):
575575

576576
def set_names(self, names):
577577
for offset, name in names:
578+
if name == '0': # handle missing pref file entries
579+
name = offset
578580
for row in range(0, 13):
579-
if offset not in ["G28", "G30", "G92", "G54", "G55", "G56", "G57", "G58", "G59", "G59.1", "G59.2", "G59.3"]:
580-
self.store[row][15] = " "
581-
elif offset == self.store[row][0]:
581+
if offset == self.store[row][0]:
582582
self.store[row][15] = name
583583

584584
def get_names(self):

0 commit comments

Comments
 (0)