Display released version in about frame when different from current version

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2001 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-08-27 20:48:38 +00:00
parent 8a670d22d5
commit 5a5fe5a5e8
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ public class AboutFrame extends JFrame {
if (currentVersion != null) {
buffer.append(BundleMessage.format("UI_CURRENT_VERSION", currentVersion));
}
if (currentVersion != null && releasedVersion != null && currentVersion.compareTo(releasedVersion) < 0) {
if ((currentVersion != null && releasedVersion != null && currentVersion.compareTo(releasedVersion) != 0)
|| (currentVersion == null && releasedVersion != null)) {
buffer.append(BundleMessage.format("UI_LATEST_VERSION", releasedVersion));
}
buffer.append(BundleMessage.format("UI_HELP_INSTRUCTIONS"));