summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/session_dialog.cc3
-rw-r--r--gtk2_ardour/session_dialog.h3
2 files changed, 6 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;
}
diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h
index f7e86fb7db..49a0084f52 100644
--- a/gtk2_ardour/session_dialog.h
+++ b/gtk2_ardour/session_dialog.h
@@ -198,6 +198,9 @@ private:
bool info_scroller_update();
sigc::connection info_scroller_connection;
void updates_button_clicked ();
+
+ int inital_height;
+ int inital_width;
};
#endif /* __gtk2_ardour_session_dialog_h__ */