On Tue, 17 Dec 2002 16:27:52 +0100 Xavier Nodet <[EMAIL PROTECTED]> wrote:

XN> when I lauch Mahogany, it opens a random folder, although I have 'Don't
XN> open any folder at startup' checked.

 This is very strange -- does it really open it or just selects it? I do
see this bug but here the folder is only selected in the tree, not opened
in the folder view. It is still annoying however. Ah, wait, do you use
"open on single click" option? This could explain it.

XN> More precisely, if I launch M several times, it will open the same
XN> folder each time, and at some (random) point, will start to always open
XN> another folder, then again after some usage it will start to open
XN> a third one...

 Here it always selects the same one (Mahogany/Bugs one -- can it really be
a pure coincidence? ;-) but I only started to follow it a few days ago.

XN> I would tend to blame wxWindows (latest CVS), because the folder opens
XN> in reaction to the focus coming to the folder tree:

 Yes, but I don't see anything wrong in wxWindows -- it simply sets the
focus to the tree and it is comctl32.dll which decides for some (unknown)
reason to set it to the given folder.

 I think the simplest fix would be to remember the last selected folder in
wxPTreeCtrl and restore it on startup and ignore the first selection event
in wxFolderTree -- then the folder will be just selected, but not opened.
The reason I say this is that some folder is definitely going to be
selected in the tree (unless we forcibly set the selection to the root
folder if "don't open at startup" is on?) and so we need to ignore the
first selection event if we don't want this folder to be opened on stratup
in "open on single click" mode.

 Regards,
VZ



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to