summaryrefslogtreecommitdiff
path: root/gtk2_ardour/session_dialog.cc
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2020-02-06 14:38:02 -0600
committerNikolaus Gullotta <nik@harrisonconsoles.com>2020-02-06 14:45:09 -0600
commita13fabf3440d5875e304c6bff57feda2c6ac9b08 (patch)
tree040078d2ca577e4059cae6dea5309a3a7170c2d7 /gtk2_ardour/session_dialog.cc
parent5fb38c7c53a0f6e20c44f05623a9e5f049903799 (diff)
Resize session dialog back to initial height and width on "back"
This fixes an issue where the size of the window stayed much larger than its content if there are no sessions in the session search path after attempting to make a new session and then pressing "back"
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r--gtk2_ardour/session_dialog.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc
index c415c0d9fc..d786182e17 100644
--- a/gtk2_ardour/session_dialog.cc
+++ b/gtk2_ardour/session_dialog.cc
@@ -141,6 +141,8 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
recent_label.hide ();
}
}
+ inital_height = get_height();
+ inital_width = get_width();
}
SessionDialog::SessionDialog ()
@@ -517,6 +519,7 @@ SessionDialog::back_button_pressed (GdkEventButton*)
get_vbox()->remove (session_new_vbox);
back_button->set_sensitive (false);
get_vbox()->pack_start (ic_vbox);
+ resize(inital_height, inital_width);
return true;
}