Commit f4c771e945e9ee9096e8e54c5e4b48e2c089d7fa
1 parent
3f59d676
Exists in
master
Removing project data after reseting styles and states (closes #107)
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
invesalius/control.py
... | ... | @@ -345,13 +345,10 @@ class Controller(): |
345 | 345 | Publisher.sendMessage('End busy cursor') |
346 | 346 | |
347 | 347 | def CloseProject(self): |
348 | - proj = prj.Project() | |
349 | - proj.Close() | |
350 | - | |
351 | 348 | Publisher.sendMessage('Set slice interaction style', const.STATE_DEFAULT) |
352 | 349 | Publisher.sendMessage('Hide content panel') |
353 | 350 | Publisher.sendMessage('Close project data') |
354 | - | |
351 | + | |
355 | 352 | if self.img_type == 1: |
356 | 353 | Publisher.sendMessage('Show import panel in frame') |
357 | 354 | |
... | ... | @@ -359,6 +356,9 @@ class Controller(): |
359 | 356 | Publisher.sendMessage('Show import bitmap panel in frame') |
360 | 357 | |
361 | 358 | |
359 | + proj = prj.Project() | |
360 | + proj.Close() | |
361 | + | |
362 | 362 | session = ses.Session() |
363 | 363 | session.CloseProject() |
364 | 364 | ... | ... |