Ticket #229: FileDialog-doAccept.st

File FileDialog-doAccept.st, 584 bytes (added by jan vrany, 6 years ago)
Line 
1"{ Encoding: utf8 }" !
2!FileDialog methodsFor:'user actions'!
3
4doAccept
5 "force accept - ignore in filterField"
6
7 self returnWasPressedInFilterField ifTrue:[
8 ^ self
9 ].
10 treeBrowser hasOpenEditor ifTrue:[
11 "/ have to send the event to the TreeView
12 treeBrowser browser closeEditor.
13 ^ self
14 ].
15 (viewFiles and:[self filenameHolder value asFilename isDirectory]) ifTrue:[
16 ^ self
17 ].
18
19 appendWasPressed := false.
20 self commonAcceptAction.
21
22 "Modified: / 15-10-2018 / 17:49:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23! !
24