mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 22:56:32 +01:00
New playlist dialog "New" button active from the start and playlist name
is bumped until a free name is found. git-svn-id: svn://localhost/ardour2/trunk@1187 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f7151b732b
commit
f599eefa99
1 changed files with 7 additions and 2 deletions
|
|
@ -926,7 +926,12 @@ RouteTimeAxisView::use_new_playlist (bool prompt)
|
||||||
if (!pl)
|
if (!pl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
name = Playlist::bump_name (pl->name(), _session);
|
name = pl->name();
|
||||||
|
|
||||||
|
do {
|
||||||
|
name = Playlist::bump_name (name, _session);
|
||||||
|
} while (_session.playlist_by_name(name));
|
||||||
|
|
||||||
|
|
||||||
if (prompt) {
|
if (prompt) {
|
||||||
|
|
||||||
|
|
@ -935,7 +940,7 @@ RouteTimeAxisView::use_new_playlist (bool prompt)
|
||||||
prompter.set_prompt (_("Name for Playlist"));
|
prompter.set_prompt (_("Name for Playlist"));
|
||||||
prompter.set_initial_text (name);
|
prompter.set_initial_text (name);
|
||||||
prompter.add_button (Gtk::Stock::NEW, Gtk::RESPONSE_ACCEPT);
|
prompter.add_button (Gtk::Stock::NEW, Gtk::RESPONSE_ACCEPT);
|
||||||
prompter.set_response_sensitive (Gtk::RESPONSE_ACCEPT, false);
|
prompter.set_response_sensitive (Gtk::RESPONSE_ACCEPT, true);
|
||||||
|
|
||||||
switch (prompter.run ()) {
|
switch (prompter.run ()) {
|
||||||
case Gtk::RESPONSE_ACCEPT:
|
case Gtk::RESPONSE_ACCEPT:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue