diff --git a/uppsrc/ide/Debug.cpp b/uppsrc/ide/Debug.cpp index 18615e203..988b22671 100644 --- a/uppsrc/ide/Debug.cpp +++ b/uppsrc/ide/Debug.cpp @@ -424,6 +424,12 @@ String Ide::GetLogPath() void Ide::OpenLog() { String p = GetLogPath(); + String path = NormalizePath(p); + if(!designer && path == editfile) { + History(-1); + return; + } + AddHistory(); if(FileExists(p)) EditFile(p); }