mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
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
3 changed files with 10 additions and 2 deletions
|
|
@ -2464,10 +2464,10 @@ ARDOUR_UI::save_session_as ()
|
|||
|
||||
if (!save_as_dialog) {
|
||||
save_as_dialog = new SaveAsDialog;
|
||||
} else {
|
||||
save_as_dialog->clear_name ();
|
||||
}
|
||||
|
||||
save_as_dialog->set_name (_session->name());
|
||||
|
||||
int response = save_as_dialog->run ();
|
||||
|
||||
save_as_dialog->hide ();
|
||||
|
|
|
|||
|
|
@ -157,6 +157,13 @@ SaveAsDialog::clear_name ()
|
|||
set_response_sensitive (RESPONSE_OK, false);
|
||||
}
|
||||
|
||||
void
|
||||
SaveAsDialog::set_name (std::string name)
|
||||
{
|
||||
new_name_entry.set_text (name);
|
||||
name_entry_changed ();
|
||||
}
|
||||
|
||||
bool
|
||||
SaveAsDialog::include_media () const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ public:
|
|||
bool copy_external () const;
|
||||
|
||||
void clear_name ();
|
||||
void set_name (std::string);
|
||||
|
||||
private:
|
||||
Gtk::CheckButton switch_to_button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue