1
0
Эх сурвалжийг харах

Bug 2022: Failure when submitting prompt with "Never ask me again" selected

https://winscp.net/tracker/2022

Source commit: 0652cad2cc35040ce4d535471aa8a94963229b72
Martin Prikryl 4 жил өмнө
parent
commit
f1af53095d
1 өөрчлөгдсөн 10 нэмэгдсэн , 2 устгасан
  1. 10 2
      source/core/Terminal.cpp

+ 10 - 2
source/core/Terminal.cpp

@@ -1807,8 +1807,16 @@ unsigned int __fastcall TTerminal::QueryUser(const UnicodeString Query,
       }
     }
   }
-  UnicodeString Name, Caption;
-  AnswerNameAndCaption(Answer, Name, Caption);
+  UnicodeString Name;
+  if (Answer == qaNeverAskAgain)
+  {
+    Name = L"NeverAskAgain";
+  }
+  else
+  {
+    UnicodeString Caption;
+    AnswerNameAndCaption(Answer, Name, Caption);
+  }
   LogEvent(FORMAT(L"Answer: %s", (Name)));
   return Answer;
 }