]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAbout.cpp
Fix reloading of local layout file (bug #11120)
[lyx.git] / src / frontends / qt4 / GuiAbout.cpp
index 4f3fd301f684a863b7b6959d543b31aa86ab943d..299ed0845d9dd24485baa2327315b759ec230c65 100644 (file)
@@ -121,6 +121,11 @@ static QString release_notes()
                                        continue;
                                } if (incomment)
                                        continue;
+
+                               // detect links to the tracker
+                               line.replace(QRegExp("(bug )(\\#)(\\d+)*"),
+                                            "<a href=\"http://www.lyx.org/trac/ticket/\\3\">\\1\\3</a>");
+
                                // headings
                                if (line.startsWith("!!!")) {
                                        if (inlist) {
@@ -223,11 +228,9 @@ static QString version()
        out << "\n";
        out << qt_("User directory: ");
        out << toqstr(makeDisplayPath(package().user_support().absFileName()));
-       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";
-       }
+       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;
 }
 
@@ -267,7 +270,10 @@ GuiAbout::GuiAbout(GuiView & lv)
        d->ui.versionLA->setText(version());
        d->ui.buildinfoTB->setText(buildinfo());
        d->ui.releasenotesTB->setHtml(release_notes());
+       d->ui.releasenotesTB->setOpenExternalLinks(true);
        d->ui.creditsTB->setHtml(credits());
+
+       d->ui.tab->setUsesScrollButtons(false);
 }