reverse part of a previous change to session dialog
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 18 Jul 2019 19:35:27 +0000 (13:35 -0600)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 18 Jul 2019 19:39:56 +0000 (13:39 -0600)
Back-button sensitive has a more complex semantic than the change
took into account

gtk2_ardour/session_dialog.cc

index 810817e85317ee19244b4bb866cc98de3be8d147..25692190670534e5bc075fb1dd621dd948b5d814 100644 (file)
@@ -93,7 +93,7 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
        open_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::open_button_pressed), false);
 
        open_button->set_sensitive (false);
-       back_button->set_sensitive (!require_new);
+       back_button->set_sensitive (false);
 
        /* this is where announcements will be displayed, but it may be empty
         * and invisible most of the time.
@@ -250,7 +250,7 @@ SessionDialog::master_channel_count ()
 bool
 SessionDialog::use_session_template () const
 {
-       if (!back_button->sensitive ()) {
+       if (!back_button->sensitive () && !new_only) {
                /* open session -- not create a new one */
                return false;
        }