Small fix for msr-file paths with spaces and strange characters

This commit is contained in:
Bastian M. Wojek 2011-07-30 15:03:39 +00:00
parent a6d10e11e3
commit 13410aa97c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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