Skip to content

Commit 5380b98

Browse files
committed
qtplasmac: allow file clear button to work if single cut encounters a bounds error
1 parent cd50444 commit 5380b98

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,9 @@ def file_loaded(self, obj, filename):
16531653
self.remove_temp_materials()
16541654
ACTION.OPEN_PROGRAM(self.oldFile)
16551655
self.set_buttons_state([self.idleList, self.idleOnList, self.idleHomedList], True)
1656+
else:
1657+
# allows file clear to work on error
1658+
self.fileOpened = True
16561659
self.w[self.scButton].setEnabled(True)
16571660
self.w.run.setEnabled(False)
16581661
else:

0 commit comments

Comments
 (0)