[Back on this old thread, which I left full in this message as won't suppose you keep all mails]
On Sat, 11 Jan 2003 02:14:16 +0100 (Romance Standard Time) Vadim Zeitlin <[EMAIL PROTECTED]> wrote: > 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?) That could be a good solution: select the 'Home' folder, as defined in the Preferences (Folder Tree pane). If you can explain me how to force this selection before the comctl32.dll kicks in... > 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. -- Xavier Nodet "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
