]> git.lyx.org Git - lyx.git/commitdiff
Add Qt-version info to LyX version string when a git repository is present.
authorStephan Witt <switt@lyx.org>
Sat, 18 Oct 2014 14:06:33 +0000 (16:06 +0200)
committerStephan Witt <switt@lyx.org>
Sat, 18 Oct 2014 14:06:33 +0000 (16:06 +0200)
src/frontends/qt4/GuiAbout.cpp

index c75fec018005eb516e68949a24a8dda43b6c75d2..e9e88eabcf5a5aaa7aa4e8f0f83be882abfa1000 100644 (file)
@@ -129,11 +129,11 @@ static QString version()
        out << "\n";
        out << qt_("User directory: ");
        out << toqstr(makeDisplayPath(package().user_support().absFileName()));
-#ifdef DEVEL_VERSION
-       out << "\n";
-       out << toqstr(bformat(_("Qt Version (run-time): %1$s"), from_ascii(qVersion()))) << "\n";
-       out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR))) << "\n";
-#endif
+       if (std::string(lyx_git_commit_hash) != "none") {
+               out << "\n";
+               out << toqstr(bformat(_("Qt Version (run-time): %1$s"), from_ascii(qVersion()))) << "\n";
+               out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR))) << "\n";
+       }
        return res;
 }