rncbc / qtractor

Qtractor - An Audio/MIDI multi-track sequencer
https://qtractor.org
GNU General Public License v2.0
509 stars 88 forks source link

qtractor project file not found after NSM duplicate #281

Open Houston4444 opened 3 years ago

Houston4444 commented 3 years ago

Hi. under NSM, Qtractor saves its project file with the session name, I must say that I really appreciate this, I don't like the idea that all displayed projects names have the name of their program under NSM. But, after duplicate the session ("Save & Dupl." in new session manager), the project path is not found and qtractor starts with an empty project, because the .qtr file in the path given by server has the name of the previous session (previous_session.qtr).

Maybe something simple could achieve the project rename, for example: at save: save the session name in a file in the dir at load:check the file above if it exists: rename the project with the new session name and load it else if there is only one qtr file, rename it and load it

But you'll better know than me how to achieve this.

rncbc commented 3 years ago

qtractor doesn't handle nor it ever requests "/nsm/server/duplicate" , that's probably entire responsibility of the session manager, none of the client.

Houston4444 commented 3 years ago

No, you didn't understand me. I never said that qtractor request /nsm/server/duplicate. What I said is, if user duplicate the session, or if user simply renames the session folder (session not open of course), qtractor doesn't find its existing project because it doesn't matches anymore with session_name.qtr .