Diff of /src/SciTEIO.cxx [e3f9c5] .. [2ca8a8] Maximize Restore

  Switch to unified view

a/src/SciTEIO.cxx b/src/SciTEIO.cxx
...
...
796
    //~ fprintf(stderr, "SaveName <%s> <%s> <%s>\n", filePath.AsInternal(), savePath.c_str(), ext);
796
    //~ fprintf(stderr, "SaveName <%s> <%s> <%s>\n", filePath.AsInternal(), savePath.c_str(), ext);
797
    return FilePath(savePath.c_str());
797
    return FilePath(savePath.c_str());
798
}
798
}
799
799
800
int SciTEBase::SaveIfUnsure(bool forceQuestion) {
800
int SciTEBase::SaveIfUnsure(bool forceQuestion) {
801
  if (CurrentBuffer()->pFileWorker && !CurrentBuffer()->pFileWorker->IsLoading()) {
801
  if (CurrentBuffer()->pFileWorker) {
802
      if (CurrentBuffer()->pFileWorker->IsLoading())
803
          // In semi-loaded state so refuse to save
804
          return IDCANCEL;
805
      else
802
        return IDNO;
806
         return IDNO;
803
    }
807
    }
804
    if ((CurrentBuffer()->isDirty) && (LengthDocument() || !filePath.IsUntitled() || forceQuestion)) {
808
    if ((CurrentBuffer()->isDirty) && (LengthDocument() || !filePath.IsUntitled() || forceQuestion)) {
805
        if (props.GetInt("are.you.sure", 1) ||
809
        if (props.GetInt("are.you.sure", 1) ||
806
                filePath.IsUntitled() ||
810
                filePath.IsUntitled() ||
807
                forceQuestion) {
811
                forceQuestion) {