save global state when quitting BEFORE we stop the engine, so that global MIDI ports...
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 8 May 2010 16:47:57 +0000 (16:47 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 8 May 2010 16:47:57 +0000 (16:47 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7082 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.cc
libs/ardour/io.cc

index 4b2f0961d167aca8e2c50756436b5fc91fccd3e6..5404432c376707c676bba121144244661b8c55d1 100644 (file)
@@ -769,10 +769,11 @@ If you still wish to quit, please use the\n\n\
                _session = 0;
        }
 
-       ArdourDialog::close_all_dialogs ();
-       engine->stop (true);
         cerr << "Save before quit\n";
        save_ardour_state ();
+
+       ArdourDialog::close_all_dialogs ();
+       engine->stop (true);
        quit ();
 }
 
index 8b52bfaea5efcf6e8beb017745c3890f7484e9e5..36cc25a31585b07f3e208f79e5354870680efd4c 100644 (file)
@@ -869,12 +869,12 @@ IO::make_connections (const XMLNode& node, int version, bool in)
                                        if ((prop = cnode->property (X_("other"))) == 0) {
                                                continue;
                                        }
-
+                                        
                                        if (prop) {
                                                p->connect (prop->value());
                                        }
                                }
-                       }
+                       } 
                }
        }