be sure that file is selected
authortz
Fri, 23 Jan 1998 18:53:14 +0100
changeset 473 396ab247a5af
parent 472 e86278147361
child 474 7b19423c8b79
be sure that file is selected
DirectoryView.st
--- a/DirectoryView.st	Fri Jan 23 18:36:45 1998 +0100
+++ b/DirectoryView.st	Fri Jan 23 18:53:14 1998 +0100
@@ -289,7 +289,7 @@
 
 fileDoubleClicked
       
-    fileDoubleClickAction notNil 
+    (fileDoubleClickAction notNil and: [self selectionOfFile value notNil]) 
     ifTrue: 
     [
         fileDoubleClickAction numArgs = 0
@@ -307,7 +307,7 @@
 
 fileSelected
       
-    fileSelectAction notNil 
+    (fileSelectAction notNil and: [self selectionOfFile value notNil]) 
     ifTrue: 
     [
         fileSelectAction numArgs = 0