Issue 126038 - Wrong directory offered on Save as and Export as pdf
Summary: Wrong directory offered on Save as and Export as pdf
Status: CLOSED DUPLICATE of issue 125235
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.1.1
Hardware: All All
: P3 Normal with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 15:04 UTC by misterTi
Modified: 2015-01-15 17:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description misterTi 2015-01-14 15:04:43 UTC
On previous versions (3.1 which was my last install), when selecting save as or export as pdf on existing files, the offered directory was the one where the file actually resides, but now, user is offered the directory where last time the file (no matter which session) was saved with save as or export to pdf.

Save as and export to pdf for existing files should offer the folder where exisitng file resides by default, like before (But only the first time these two operations are invoked on opening an existing file). This is very annoying because files are saved to wrong folders many times if special attention is not taken. Please check on 3.x to see exactly what the difference is.


This is not the same as 
https://issues.apache.org/ooo/show_bug.cgi?id=121255

So to reproduce,
1. Open Calc and open an exisitng ods file1
2. Select Save as, offered folder will be the one you selected for last file0 or last session. Should be the folder where file1 resides.(If there was no last save as, then i don't know what folder will be offered)
3. Open file2
4. Save as or Export to PDF for file2 (Folder for file1 will be offered)
Comment 1 Oliver Brinzing 2015-01-14 18:56:04 UTC
do you use the aoo or windows filepicker dialog?

there are issues with windows dialog:

[Issue 123544] XFilePicker's setDisplayDirectory and setDefaultName do not work in Windows
[Issue 110141] FilePicker Dialog "setDisplayDirectory" ignored
Comment 2 Oliver Brinzing 2015-01-14 18:58:18 UTC
[Issue 125235] Regression: export to PDF defaults to last used directory
Comment 3 Ariel Constenla-Haile 2015-01-15 00:29:18 UTC
@ mistertTi : Please provides the following information:

a) your operating system and its version (Linux, MacOSX, Windows? If Windows, Windows XP, Vista, 7, 8? etc.

b) are you using the system dialogues, or the one provided by OpenOffice? You can check this by going to the menu Tools - Options. On the Options dialogue, choose OpenOffice - General on the left, and see if "Open/Save dialogs - Use OpenOffice dialogs" is checked

c) in case you are using Windows, did the behavior change after updating from Windows XP to Windows Vista/7/8? See bug 125235 Comment 12
Comment 4 misterTi 2015-01-15 14:08:54 UTC
Yes, the behavior changed from XP to Win 8.1. Well actually i was using oo 3.1 on my XP until i recently moved to 8.1 and installed 4.1.0 and after that 4.1.1 to check, if this has been fixed. So i don't know why exactly this changed, was it because of the aoo version change or OS change.

I tried with aoo file dialogs and it now works properly. But i have to say, that i don't like to use aoo dialogs, because they provide limited functionality, compared to system dialogs. (System context menus are missing, shortcuts on the left also..)
Comment 5 Ariel Constenla-Haile 2015-01-15 17:15:39 UTC
(In reply to misterTi from comment #4)
> Yes, the behavior changed from XP to Win 8.1. Well actually i was using oo
> 3.1 on my XP until i recently moved to 8.1 and installed 4.1.0 and after
> that 4.1.1 to check, if this has been fixed. So i don't know why exactly
> this changed, was it because of the aoo version change or OS change.

Microsoft changed, since Vista, the way applications use the system dialogue (its "API"), so there are two different implementations in OpenOffice, the one you use in Windows XP is not the same you use in Windows >= Vista.

Unfortunately, the implementation for Windows Vista has some bugs, and OpenOffice's own dialogues are rudimentary.

This is a duplicated of bug 125235

*** This issue has been marked as a duplicate of issue 125235 ***