mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
Panel focus was not restored after pseudo-modal authentication window was opened while session was opening by clicking a session tab (caused by 81ce67f0)
Source commit: 64585312898265008da7871d732758e070f66fe9
This commit is contained in:
@@ -1203,6 +1203,7 @@ void __fastcall ShowAsModal(TForm * Form, void *& Storage, bool BringToFront)
|
||||
CancelDrag();
|
||||
if (GetCapture() != 0) SendMessage(GetCapture(), WM_CANCELMODE, 0, 0);
|
||||
ReleaseCapture();
|
||||
Application->ModalStarted();
|
||||
(static_cast<TPublicForm*>(Form))->FFormState << fsModal;
|
||||
|
||||
TShowAsModalStorage * AStorage = new TShowAsModalStorage;
|
||||
@@ -1277,6 +1278,8 @@ void __fastcall HideAsModal(TForm * Form, void *& Storage)
|
||||
|
||||
(static_cast<TPublicForm*>(Form))->FFormState >> fsModal;
|
||||
|
||||
Application->ModalFinished();
|
||||
|
||||
delete AStorage;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user