View Issue Details

IDProjectCategoryView StatusLast Update
0020113LazarusIDEpublic2011-10-07 10:30
ReporterFlávio Etrusco Assigned ToJuha Manninen  
Status resolvedResolutionfixed 
Product Version0.9.31 (SVN) 
Fixed in Version0.9.31 (SVN) 
Summary0020113: Save dialog for new units should default to current project folder instead of the folder loaded from session
Description1) Create a new application project, save it and its unit1;
3) Open other project or create a new one;
2) Optional: close and reopen the IDE;
4) Create a new unit, execute Save;
The dialog's InitialDir is the first project's folder.
TagsNo tags attached.
Fixed in Revision32349
Attached Files


Flávio Etrusco

2011-08-31 20:58

developer   ~0051332

Or practically: the "InitialDir" should cleared if it's the project folder when the project is closed.

Juha Manninen

2011-10-07 08:10

developer   ~0052699

Flávio: is it really fixed in r32349?
There I set InitialDir of OpenDialog, not SaveDialog.

Flávio Etrusco

2011-10-07 09:34

developer   ~0052712

Yes, it is. IIRC the same value is used for both, so that would be why you fixed it accidentally :) (it's 4:30AM here so I'm bit lazy to search it right now ;)

Juha Manninen

2011-10-07 10:09

developer   ~0052713

Hmmm... This is a miracle!
My code is called only when the user OPENS a file. It is not called when the user creates a new unit and saves it.
Still, the InitialDir of SaveDialog is always the project dir. I tested by changing projects.

Good, things work although they shouldn't. Usually it is the other way around.

Flávio Etrusco

2011-10-07 10:30

developer   ~0052716

LOL. Very true.

Issue History

Date Modified Username Field Change
2011-08-31 16:58 Flávio Etrusco New Issue
2011-08-31 16:58 Flávio Etrusco LazTarget => -
2011-08-31 16:58 Flávio Etrusco Widgetset => Win32/Win64
2011-08-31 20:58 Flávio Etrusco Note Added: 0051332
2011-10-07 07:59 Flávio Etrusco Status new => assigned
2011-10-07 07:59 Flávio Etrusco Assigned To => Juha Manninen
2011-10-07 08:00 Flávio Etrusco Fixed in Revision => 32349
2011-10-07 08:00 Flávio Etrusco LazTarget - => 0.99.0
2011-10-07 08:00 Flávio Etrusco Status assigned => resolved
2011-10-07 08:00 Flávio Etrusco Fixed in Version => 0.9.31 (SVN)
2011-10-07 08:00 Flávio Etrusco Resolution open => fixed
2011-10-07 08:01 Flávio Etrusco Target Version => 0.99.0
2011-10-07 08:10 Juha Manninen Note Added: 0052699
2011-10-07 09:34 Flávio Etrusco Note Added: 0052712
2011-10-07 10:09 Juha Manninen Note Added: 0052713
2011-10-07 10:30 Flávio Etrusco Note Added: 0052716