From: Pierre-Luc P. <pa...@us...> - 2004-02-27 17:53:30
|
Update of /cvsroot/gallery/gallery_remote/com/gallery/GalleryRemote/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3442/com/gallery/GalleryRemote/model Modified Files: Tag: BRANCH_GR_1_3 Album.java Gallery.java Log Message: 2004-02-27 Pierre-Luc Paour <ga...@pa...> (1.3.2-b7) * Added support for Basic auth username and password embedded in URL, such as http://user:pass@server/path/. This is obviously an insecure way of storing passwords. Thanks to Mindstorm for letting me test on his server. * Fixed a bunch of niggles with the Auth dialog. * Added flushing of the JTree when adding a new album. It's better than fetching the albums again from the server but it loses album state. I spent two days trying to debug this but I can't crack this problem of the JTree not refreshing. Help needed! Index: Gallery.java =================================================================== RCS file: /cvsroot/gallery/gallery_remote/com/gallery/GalleryRemote/model/Gallery.java,v retrieving revision 1.44 retrieving revision 1.44.2.1 diff -w -u -r1.44 -r1.44.2.1 --- Gallery.java 25 Feb 2004 23:21:44 -0000 1.44 +++ Gallery.java 27 Feb 2004 17:44:38 -0000 1.44.2.1 @@ -222,12 +222,12 @@ selectedAlbum = (Album) this.albumList.get(0); } - //notifyListeners(); - if (a.getParentAlbum() == null) { + notifyListeners(); + /*if (a.getParentAlbum() == null) { fireTreeNodesInserted(this, getObjectArrayForAlbum(root), null, new Object[] { a }); } else { fireTreeNodesInserted(this, getObjectArrayForAlbum(a.getParentAlbum()), null, new Object[] { a }); - } + }*/ } public ArrayList getAlbumList() { |