change into the msr-file directory before calling musrview

This commit is contained in:
nemu
2010-10-18 05:09:27 +00:00
parent bdde8b22c0
commit 616740f299
2 changed files with 4 additions and 1 deletions

View File

@ -2048,7 +2048,9 @@ void PTextEdit::musrView()
QString cmd;
QString str;
str = fAdmin->getExecPath() + "/musrview";
str = "cd " + QFileInfo(*fFilenames.find( currentEditor() )).absolutePath() + "; ";
str += fAdmin->getExecPath() + "/musrview";
cmd = str + " \"";
str = *fFilenames.find( currentEditor() );