[Github-comments] [geany/geany] Save As dialog can save the wrong document (#2599)

Nick Treleaven notifications at xxxxx
Mon Sep 28 16:56:18 UTC 2020


## Steps to reproduce:

1. Open a document
1. File->Save As
1. Notice an interesting file in the list of files in the dialog
1. Open interesting file from the command-line (in another program) with `geany interesting-file`. The file opens in the background underneath the Save As dialog.
1. Type a new filename and click save

The `interesting-file` document will have been saved with the new filename. The original document will still be open, unsaved.

## Cause

`handle_save_as` is dialogs.c uses `document_get_current`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2599
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200928/7be486fe/attachment.htm>


More information about the Github-comments mailing list