개정판 00b0525b
add exit msg
Change-Id: I6c99dd59d8dfb79d7c3df0e8b6e4ae2519ea0006
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
335 | 335 |
def closeEvent(self, event): |
336 | 336 |
"""save geometry and state and ask user to save drawing which is modified""" |
337 | 337 |
|
338 |
if self.save_drawing_if_necessary(): |
|
339 |
event.ignore() |
|
340 |
return |
|
341 |
|
|
338 | 342 |
self.settings.setValue('geometry', self.saveGeometry()) |
339 | 343 |
self.settings.setValue('windowState', self.saveState()) |
340 | 344 |
# TODO: need to modify |
... | ... | |
347 | 351 |
app_doc_data.update_view_region(app_doc_data.activeDrawing) |
348 | 352 |
"""up to here""" |
349 | 353 |
|
350 |
# self.save_drawing_if_necessary() |
|
351 | 354 |
AppDocData.instance().clear() |
352 | 355 |
event.accept() |
353 | 356 |
|
내보내기 Unified diff