summaryrefslogtreecommitdiff
path: root/gtk2_ardour/session_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-24 02:08:32 +0200
committerRobin Gareus <robin@gareus.org>2017-08-24 02:08:32 +0200
commit08e564dc2e65e3c80b362024ffe5ca89962dc00f (patch)
tree9aecd1e8cb46ffdf7b64c7fe602c7c7b9b55bac3 /gtk2_ardour/session_dialog.cc
parent5cffe7fa840481cd7c332ed058016eada49eed6c (diff)
Fix session-open after selecting new, template, then back
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r--gtk2_ardour/session_dialog.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc
index b73514c1aa..172acef3c8 100644
--- a/gtk2_ardour/session_dialog.cc
+++ b/gtk2_ardour/session_dialog.cc
@@ -265,6 +265,11 @@ SessionDialog::master_channel_count ()
bool
SessionDialog::use_session_template () const
{
+ if (!back_button->sensitive () && !new_only) {
+ /* open session -- not create a new one */
+ return false;
+ }
+
if (!load_template_override.empty()) {
return true;
}