save-as: default to current session name.
this allows to easily add suffixes or otherwise tweak the current session-name.
This commit is contained in:
parent
8c728411db
commit
a9163e9208
@ -2464,10 +2464,10 @@ ARDOUR_UI::save_session_as ()
|
|||||||
|
|
||||||
if (!save_as_dialog) {
|
if (!save_as_dialog) {
|
||||||
save_as_dialog = new SaveAsDialog;
|
save_as_dialog = new SaveAsDialog;
|
||||||
} else {
|
|
||||||
save_as_dialog->clear_name ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
save_as_dialog->set_name (_session->name());
|
||||||
|
|
||||||
int response = save_as_dialog->run ();
|
int response = save_as_dialog->run ();
|
||||||
|
|
||||||
save_as_dialog->hide ();
|
save_as_dialog->hide ();
|
||||||
|
@ -157,6 +157,13 @@ SaveAsDialog::clear_name ()
|
|||||||
set_response_sensitive (RESPONSE_OK, false);
|
set_response_sensitive (RESPONSE_OK, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SaveAsDialog::set_name (std::string name)
|
||||||
|
{
|
||||||
|
new_name_entry.set_text (name);
|
||||||
|
name_entry_changed ();
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SaveAsDialog::include_media () const
|
SaveAsDialog::include_media () const
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,7 @@ public:
|
|||||||
bool copy_external () const;
|
bool copy_external () const;
|
||||||
|
|
||||||
void clear_name ();
|
void clear_name ();
|
||||||
|
void set_name (std::string);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::CheckButton switch_to_button;
|
Gtk::CheckButton switch_to_button;
|
||||||
|
Loading…
Reference in New Issue
Block a user