proper handling of open mlog-files
This commit is contained in:
parent
5e1dd892b0
commit
bbabeee8d9
@ -29,6 +29,9 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
#include <qtextedit.h>
|
#include <qtextedit.h>
|
||||||
#include <qaction.h>
|
#include <qaction.h>
|
||||||
#include <qmenubar.h>
|
#include <qmenubar.h>
|
||||||
@ -816,10 +819,14 @@ void PTextEdit::musrView()
|
|||||||
|
|
||||||
str = *fFilenames.find( currentEditor() );
|
str = *fFilenames.find( currentEditor() );
|
||||||
if (fShowMlog) {
|
if (fShowMlog) {
|
||||||
str.replace(str.find(".msr"), 4, ".mlog");
|
int idx = str.find(".msr");
|
||||||
|
if (idx > 0)
|
||||||
|
str.replace(idx, 4, ".mlog");
|
||||||
}
|
}
|
||||||
cmd += str + " &";
|
cmd += str + " &";
|
||||||
|
|
||||||
|
cout << endl << "str = " << str << endl;
|
||||||
|
|
||||||
system(cmd.latin1());
|
system(cmd.latin1());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user