Skip to content

Commit

Permalink
2004-08-17 Pierre-Luc Paour <gallery@paour.com> (1.4.1-b8)
Browse files Browse the repository at this point in the history
	* Fixed duplicate root album in New Album dialog on G2.
  • Loading branch information
Pierre-Luc Paour committed Aug 17, 2004
1 parent aaee8b3 commit 4dc0e64
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2004-08-17 Pierre-Luc Paour <gallery@paour.com> (1.4.1-b8)

* Fixed duplicate root album in New Album dialog on G2.

2004-08-13 Pierre-Luc Paour <gallery@paour.com> (1.4.1-b7)

* Fixed cookie handling in HTTPClient (fixes losing G2 sessions).
Expand Down
2 changes: 2 additions & 0 deletions com/gallery/GalleryRemote/GalleryComm2_5.java
Expand Up @@ -38,6 +38,8 @@ protected GalleryComm2_5(Gallery g) {

Arrays.sort(capabilities2);
Arrays.sort(capabilities3);

g.setGalleryVersion(2);
}

public NVPair[] fudgeParameters(NVPair[] data) {
Expand Down
14 changes: 14 additions & 0 deletions com/gallery/GalleryRemote/model/Gallery.java
Expand Up @@ -65,6 +65,7 @@ public class Gallery extends DefaultTreeModel implements Serializable, Preferenc
transient private Boolean ambiguousUrl;
transient private boolean blockWrites = false;
transient public boolean cookieLogin = false;
transient public int galleryVersion = 1;

public static String types[] = new String[]{STANDALONE, POSTNUKE, PHPNUKE, GEEKLOG};
public static final int TYPE_STANDALONE = 0;
Expand Down Expand Up @@ -850,6 +851,11 @@ public ArrayList getFlatAlbumList() {
} else {
flatAlbumList = null;
}

// G2 root is a normal album, don't add a fake root...
if (galleryVersion == 2) {
flatAlbumList.remove(getRoot());
}
}

return flatAlbumList;
Expand All @@ -867,4 +873,12 @@ public Album createRootAlbum() {

return (Album) getRoot();
}

public int getGalleryVersion() {
return galleryVersion;
}

public void setGalleryVersion(int galleryVersion) {
this.galleryVersion = galleryVersion;
}
}
4 changes: 2 additions & 2 deletions defaults.properties
Expand Up @@ -234,6 +234,6 @@ updateUrlBeta=http://gallery.sourceforge.net/gallery_remote_version_check_beta.p
#
# --- Do not edit below this line ---
#
version=1.4.1-b7
releaseDate=2004/08/13
version=1.4.1-b8
releaseDate=2004/08/17
aboutText=Gallery Remote\n \n \nA part of the Gallery Open-Source Project\nhttp://gallery.sourceforge.net\n \n \nMaintained by:\n \nPierre-Luc Paour\n \n \nInitial version by Chris Smith\n \n \nContributors:\n \nTim Miller\nDolan Halbrook\nMarkus Cozowicz\nScott Gartner\nAmedeo Paglione\nChris Schwerdt\n \n \nArtwork by Ross A. Reyman\n \n \nBundled software:\n \nImageMagick\nJSX\nJava look and feel Graphics Repository icons\njpegtran, Guido Vollbeding's version\nMetadataExtractor

0 comments on commit 4dc0e64

Please sign in to comment.