]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid duplication in native dialog
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 29 Aug 2012 12:17:31 +0000 (12:17 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 29 Aug 2012 12:17:31 +0000 (12:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/aboutdlg.mm

index e7cb94b3f1a41c866d24c4b03aa26da733e02d5a..855fc9e259e7b317b9f5b9cca835682e7f6a641f 100644 (file)
@@ -81,7 +81,8 @@ void wxAboutBox(const wxAboutDialogInfo& info, wxWindow *parent)
         if ( info.HasVersion() )
         {
             opts.Set(CFSTR("Version"),info.GetVersion());
         if ( info.HasVersion() )
         {
             opts.Set(CFSTR("Version"),info.GetVersion());
-            opts.Set(CFSTR("ApplicationVersion"),info.GetLongVersion());
+            if ( info.GetLongVersion() != (_("Version ")+info.GetVersion()))
+                opts.Set(CFSTR("ApplicationVersion"),info.GetLongVersion());
         }
 
         if ( info.HasCopyright() )
         }
 
         if ( info.HasCopyright() )