]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.cpp
Fix handling of the add branch textfield in GuiBranches
[lyx.git] / src / frontends / qt4 / qt_helpers.cpp
index 103e024b20410fa56c16a3f9cb31b4e5731e757b..59a3d67fd2e224aa0fe25cf5f4f0d5bdc72fc7fd 100644 (file)
@@ -424,7 +424,7 @@ QString Filter::toString() const
 {
        QString s;
 
-       bool const has_description = desc_.empty();
+       bool const has_description = !desc_.empty();
 
        if (has_description) {
                s += toqstr(desc_);
@@ -509,9 +509,9 @@ FileFilterList::FileFilterList(docstring const & qt_style_filter)
 
 void FileFilterList::parse_filter(string const & filter)
 {
-       // Matches "TeX documents (*.tex)",
-       // storing "TeX documents " as group 1 and "*.tex" as group 2.
-       static lyx::regex const filter_re("([^(]*)\\(([^)]+)\\) *$");
+       // Matches "TeX documents (plain) (*.tex)",
+       // storing "TeX documents (plain) " as group 1 and "*.tex" as group 2.
+       static lyx::regex const filter_re("(.*)\\(([^()]+)\\) *$");
 
        match_results<string::const_iterator> what;
        if (!lyx::regex_search(filter, what, filter_re)) {
@@ -561,7 +561,7 @@ QString guiName(string const & type, BufferParams const & bp)
        if (type == "listing")
                return qt_("List of Listings");
        if (type == "index")
-               return qt_("List of Indexes");
+               return qt_("List of Index Entries");
        if (type == "marginalnote")
                return qt_("List of Marginal notes");
        if (type == "note")