OSDN Git Service

終了時に、ログ検索ダイアログが非表示になっているとリリースされない不具合の修正
authorh677 <h677>
Sun, 3 Feb 2008 15:00:26 +0000 (15:00 +0000)
committerh677 <h677>
Sun, 3 Feb 2008 15:00:26 +0000 (15:00 +0000)
終了時に、マウスジェスチャーのイベントを無効にする処理追加

Giko.pas

index 92bb4b2..2731404 100644 (file)
--- a/Giko.pas
+++ b/Giko.pas
@@ -1538,12 +1538,12 @@ begin
        if (SearchDialog <> nil) then begin
                if (SearchDialog.Visible) then begin
                        SearchDialog.Close;
-                       try
-                               SearchDialog.Release;
-                       except
-                       end;
-                       SearchDialog := nil;
                end;
+        try
+            SearchDialog.Release;
+        except
+        end;
+        SearchDialog := nil;
        end;
 
        //\83X\83N\83\8a\81[\83\93\8fã\82Ì\91S\82Ä\82Ì\83t\83H\81[\83\80\82©\82ç\81AEditorForm\82ð\95Â\82\82é
@@ -1561,6 +1561,11 @@ var
 begin
        // \83}\83E\83X\83W\83F\83X\83`\83\83\81[\8aJ\95ú
        try
+        if GikoSys.Setting.GestureEnabled then begin
+               MouseGesture.OnGestureStart := nil;
+                   MouseGesture.OnGestureMove := nil;
+                   MouseGesture.OnGestureEnd := nil;
+        end;
         MouseGesture.Clear;
                MouseGesture.UnHook;
     //    MouseGesture.Free;    // Free \82·\82é\82Æ\82¢\82¯\82È\82¢\81H