Prechádzať zdrojové kódy

FIX: Cannot focus a disabled or invisible window

Alexander Koblov 3 mesiacov pred
rodič
commit
90222158e1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/uquickviewpanel.pas

+ 1 - 1
src/uquickviewpanel.pas

@@ -160,7 +160,7 @@ begin
     FViewer.Show;
   end;
   // Viewer can steal focus, so restore it
-  if Assigned(FLastFocusedControl) then
+  if Assigned(FLastFocusedControl) and FLastFocusedControl.CanSetFocus then
     FLastFocusedControl.SetFocus
   else if not FFileView.Focused then
     FFileView.SetFocus;