diff --git a/src/editor/singleinstance.lua b/src/editor/singleinstance.lua index ee97c01f05..718f2af496 100644 --- a/src/editor/singleinstance.lua +++ b/src/editor/singleinstance.lua @@ -50,8 +50,13 @@ if success then -- ok, server was started, we are solo svr:sendto(protocol.server.answerok,ip,port) local filename = msg:match(protocol.client.requestloading:gsub("%%s","(.+)$")) if filename then - if LoadFile(filename, nil, true) - then ide.frame:RequestUserAttention() -- let's let the user know we want his attention + if LoadFile(filename, nil, true) then + local frame = ide.frame + frame:Iconize(false) + frame:Raise() + frame:Show(true) + frame:SetFocus() + frame:RequestUserAttention() else DisplayOutput("Can't open requested file '"..filename.."'.\n") end end end