Explorar o código

放开云版附件,有事冲我来。

CSL %!s(int64=9) %!d(string=hai) anos
pai
achega
14c8bc58f3
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 2 0
      Forms/UpFileManageFrame.pas
  2. 0 1
      Frames/ProjectFme.dfm

+ 2 - 0
Forms/UpFileManageFrame.pas

@@ -380,6 +380,8 @@ end;
 procedure TUpFileManageView.btnDownClick(Sender: TObject);
 var sFile: string;
 begin
+  if not Assigned(Selected) then Exit;
+
   Screen.Cursor := crHourGlass;
   try
     Selected.Data.Status := ufsDowning;

+ 0 - 1
Frames/ProjectFme.dfm

@@ -213,7 +213,6 @@ object ProjectFrame: TProjectFrame
           Enabled = False
           ImageIndex = 6
           Style = tbsCheck
-          Visible = False
           OnClick = tobtnUpFileClick
         end
         object tobtnBookmark: TToolButton