Fix small issue with the playlist unique name patch.
authorSampo Savolainen <v2@iki.fi>
Sun, 10 Feb 2008 16:54:21 +0000 (16:54 +0000)
committerSampo Savolainen <v2@iki.fi>
Sun, 10 Feb 2008 16:54:21 +0000 (16:54 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3036 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/playlist.cc

index 1765093805751169c62cac1d15dbb8fb5355c9bf..9ed103b67ce8e8ac8d81e3efc4e4e2f204d470eb 100644 (file)
@@ -282,6 +282,10 @@ Playlist::set_name (string str)
                return;
        }
 
+       if (str == _name) {
+               return;
+       }
+
        string name = str;
 
        while (_session.playlist_by_name(name) != 0) {