Gui: Running a command with Gui.runCommand() must always be considered as Gui command

This commit is contained in:
wmayer
2021-02-20 19:01:11 +01:00
parent 2565ef5f69
commit 44c444bf2f

View File

@@ -422,10 +422,7 @@ void Command::invoke(int i, TriggerSource trigger)
// Cancel the above pending line first
pending.cancel();
ss << "Gui.runCommand('" << sName << "'," << i << ')';
if(eType & AlterDoc)
manager->addLine(MacroManager::App, ss.str().c_str());
else
manager->addLine(MacroManager::Gui, ss.str().c_str());
manager->addLine(MacroManager::Gui, ss.str().c_str());
}else{
// In case the command has any output to the console, lets
// mark the end of the command here