]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/Toolbars.cpp
Fix list of viewable formats in view/update menu.
[features.git] / src / frontends / qt4 / Toolbars.cpp
index 7678309cb61106a0341489c1f598da895258750b..a2f8a0bec7516c5b835fd74baaa4670427ac5d20 100644 (file)
@@ -194,9 +194,13 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
                case TO_IMPORTFORMATS:
                case TO_UPDATEFORMATS:
                case TO_VIEWFORMATS: {
-                       FormatList formats = (code == TO_IMPORTFORMATS) ?
-                               theConverters().importableFormats() :
-                               theConverters().exportableFormats(true);
+                       FormatList formats;
+                       if (code == TO_IMPORTFORMATS)
+                               formats = theConverters().importableFormats();
+                       else if (code == TO_EXPORTFORMATS)
+                               formats = theConverters().exportableFormats(false);
+                       else
+                               formats = theConverters().exportableFormats(true);
                        sort(formats.begin(), formats.end());
                        for (Format const * f : formats) {
                                if (f->dummy())