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