[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] wxmsw-2.9 regression: default directory for File | Open
From: |
Greg Chicares |
Subject: |
Re: [lmi] wxmsw-2.9 regression: default directory for File | Open |
Date: |
Wed, 01 Apr 2009 13:31:46 +0000 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
On 2009-03-27 23:30Z, Vadim Zeitlin wrote:
> On Tue, 24 Mar 2009 14:17:20 +0000 Greg Chicares <address@hidden> wrote:
>
> GC> To reproduce:
> GC> load lmi on msw [FWIW, I'm using msw 'xp']
> GC> File | Open
> GC> Examine the "Look in:" directory shown at the top of the dialog.
> GC>
> GC> With wx-2.8.10 and prior versions, this apparently is set to the
[...it was set to some directory that msw regarded as appropriate;
but wx trunk uses "My Documents" instead...]
> I can think of 2 general solutions. First one is to always keep track of
> the last used directory at the application level. I.e. in LMI case it
> should save wxDocManager::GetLastDirectory() on application exit and
> restore it using SetLastDirectory() on next run. This should work perfectly
> well but does require some effort (albeit not much).
We may want to do something like that in the future. Some end users
would like to set a single, constant directory for this purpose;
others would prefer to have the last directory remembered.
> Second solution would be to make wx a bit smarter with its auto
> determination of the last directory and use the most recent file in
> wxFileHistory and only fall back to "My Documents" if the history is empty.
> This seems a bit more fragile but still should typically work very well. So
> if you don't see any objections to it, I'll implement this behaviour in wx
> itself.
Yes, I think that's a really good idea.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [lmi] wxmsw-2.9 regression: default directory for File | Open,
Greg Chicares <=