]> git.lyx.org Git - features.git/commitdiff
* GuiAbout.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Thu, 15 Jan 2009 13:56:40 +0000 (13:56 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Thu, 15 Jan 2009 13:56:40 +0000 (13:56 +0000)
- fall back to lyx_release_date, if everything else fails.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28173 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiAbout.cpp

index 7c9c38aa039d0f5c35041d66a8b85c85e9ff9c66..a2a0b7017422f850477950c636607583452905b6 100644 (file)
@@ -97,8 +97,12 @@ static QString version()
        QLocale loc;
        QString loc_release_date =
                loc.toString(release_date(), QLocale::LongFormat);
-       if (lyx_release_date == "not released yet")
-               loc_release_date = qt_("not released yet");
+       if (loc_release_date.isEmpty()) {
+               if (lyx_release_date == "not released yet")
+                       loc_release_date = qt_("not released yet");
+               else
+                       loc_release_date = toqstr(lyx_release_date);
+       }
        docstring version_date =
                bformat(_("LyX Version %1$s\n(%2$s)\n\n"),
                        from_ascii(lyx_version),