Browse Source

FIX: Crash in configure hotkeys

Alexander Koblov 9 năm trước cách đây
mục cha
commit
2f2f9e48bf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/fcopymovedlg.pas

+ 1 - 1
src/fcopymovedlg.pas

@@ -369,7 +369,7 @@ begin
   if Assigned(Hotkey) then
     btnAddToQueue.Caption := btnAddToQueue.Caption + ' (' + ShortcutsToText(Hotkey.Shortcuts) + ')';
 
-  if fspListInMainThread in FFileSource.Properties then
+  if Assigned(FFileSource) and (fspListInMainThread in FFileSource.Properties) then
   begin
     btnAddToQueue.Visible:= False;
     FQueueIdentifier:= ModalQueueId;