Revision: 77981
          http://sourceforge.net/p/brlcad/code/77981
Author:   starseeker
Date:     2020-12-17 15:03:45 +0000 (Thu, 17 Dec 2020)
Log Message:
-----------
Recognize when all the windows are gone - if that's what has happened, we're 
shutting down the application.

Modified Paths:
--------------
    brlcad/trunk/src/tclscripts/mged/mview.tcl

Modified: brlcad/trunk/src/tclscripts/mged/mview.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/mged/mview.tcl  2020-12-17 15:00:25 UTC (rev 
77980)
+++ brlcad/trunk/src/tclscripts/mged/mview.tcl  2020-12-17 15:03:45 UTC (rev 
77981)
@@ -246,6 +246,11 @@
     catch  { release $mged_gui($id,top).ur }
     catch  { release $mged_gui($id,top).ll }
     catch  { release $mged_gui($id,top).lr }
+
+    # If all the windows are gone, we're closing the application
+    if { !$mged_gui($id,show_cmd) && !$mged_gui($id,show_dm)} {
+       exit
+    }
 }
 
 proc closemv { id } {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to