do not use doCommand without using format string, add overloaded method of runCommand

This commit is contained in:
wmayer
2016-09-15 18:53:37 +02:00
parent a4aae8cca5
commit e8554cc77a
17 changed files with 60 additions and 47 deletions

View File

@@ -404,7 +404,7 @@ void StdCmdNew::activated(int iMsg)
QString cmd;
cmd = QString::fromLatin1("App.newDocument(\"%1\")")
.arg(qApp->translate("StdCmdNew","Unnamed"));
doCommand(Command::Doc,(const char*)cmd.toUtf8());
runCommand(Command::Doc,cmd.toUtf8());
}
//===========================================================================