Explorar o código

* always do a SaveAs when trying to save new editors, also if there
aren't any modifications yet, since as the editor has no name yet
a plain save won't do anything (mantis #9477)

git-svn-id: trunk@8903 -

Jonas Maebe %!s(int64=18) %!d(string=hai) anos
pai
achega
9343a2ea50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ide/fpviews.pas

+ 1 - 1
ide/fpviews.pas

@@ -2275,7 +2275,7 @@ begin
             Hide;
           cmSave :
             if Editor^.IsClipboard=false then
-             if (Editor^.FileName='') and Editor^.GetModified then
+             if (Editor^.FileName='') then
               Editor^.SaveAs
              else
               Editor^.Save;