[hdf-compass] 224/295: fix to ticket 140: exit when closing InitFrame

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.

commit b94f84591ed29a81bbeae33ef5fba4b0d259c556
Author: giumas <giumas at yahoo.it>
Date:   Mon Nov 2 13:17:55 2015 -0500

    fix to ticket 140: exit when closing InitFrame
---
 hdf_compass/compass_viewer/frame.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdf_compass/compass_viewer/frame.py b/hdf_compass/compass_viewer/frame.py
index 2c95c5a..e47f3e3 100644
--- a/hdf_compass/compass_viewer/frame.py
+++ b/hdf_compass/compass_viewer/frame.py
@@ -130,7 +130,7 @@ class BaseFrame(wx.Frame):
         BaseFrame.open_frames -= 1
         log.debug("exit frame -> open frames: %s" % BaseFrame.open_frames)
         self.Destroy()
-        if BaseFrame.open_frames == 0:
+        if (BaseFrame.open_frames == 0) or isinstance(self, InitFrame):
             wx.GetApp().Exit()
 
     def on_manual(self, evt):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git



More information about the debian-science-commits mailing list