proper handling of open mlog-files

This commit is contained in:
nemu 2009-03-07 16:31:46 +00:00
parent 5e1dd892b0
commit bbabeee8d9

View File

@ -29,6 +29,9 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <iostream>
using namespace std;
#include <qtextedit.h>
#include <qaction.h>
#include <qmenubar.h>
@ -814,12 +817,16 @@ void PTextEdit::musrView()
str = fAdmin->getExecPath() + "/musrview";
cmd = str + " ";
str = *fFilenames.find( currentEditor());
str = *fFilenames.find( currentEditor() );
if (fShowMlog) {
str.replace(str.find(".msr"), 4, ".mlog");
int idx = str.find(".msr");
if (idx > 0)
str.replace(idx, 4, ".mlog");
}
cmd += str + " &";
cout << endl << "str = " << str << endl;
system(cmd.latin1());
}