[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2947: FileChooser private bookmarks seems broken


http://gambaswiki.org/bugtracker/edit?object=BUG.2947&from=L21haW4-

Comment #4 by Bruce STEERS:

i found a fix.
I think the _Age variable does not change when setting private bookmarks.

So when it rechecks in CBookmarkList.Load it returns at this line..

 If $iBookmarkAge = Bookmarks._Age Then Return


So I changed the CBookmarkList.Private_Write method to this...

Private Sub Private_Write(Value As Collection[])

  $aPrivate = Value
  $iBookmarkAge = Bookmarks._Age - 1 ' change the age to force a recheck
  Load

End

Then in FDirChooser.class i uncomment the FillMenu line that is commented out in SetPrivateBookmarks.

Public Sub SetPrivateBookmarks(aBookmark As Collection[])
  
  $hBookmarkList.Private = aBookmark
  FillMenu
  
End

Then working as expected.
Respects


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----