Tk Source Code

View Ticket
Login
Ticket UUID: 4edd8de632111079152afa30f8ae6801946221bd
Title: tk_getSaveFile returns initial file as part of directory
Type: Bug Version: TkAqua 8.6.6
Submitter: jal_frezie Created on: 2017-11-24 13:01:52
Subsystem: 37. [tk_get*File] Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Open Last Modified: 2017-11-25 04:18:49
Resolution: None Closed By: nobody
    Closed on:
Description:
(Only found in TkAqua so far)
If you:
* call tk_getSaveFile with an -initialfile that exists, then 
* select another file in the same directory
* Reply 'No' to 'Overwrite existing file
* Cancel the file selection dialogue
* call tk_getSaveFile again with same -initialfile 
* select another file in the same directory
...then the dialogue closes and tk_getSaveFile exits returning a path consisting of the initial file as a directory containing the selected file, e.g.
% tk_getSaveFile -initialfile dodgy.shf
[...]/dodgy.shf/myanmar.sml
User Comments: kevin_walzer added on 2017-11-25 04:18:49:
I'm not able to reproduce this on 8.6.7, it behaves as expected.

jal_frezie added on 2017-11-24 13:20:44:
Note that if you switch to the small form of the dialogue and back, it works OK