]> git.lyx.org Git - features.git/commitdiff
Navigator: default to table of contents.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 11 Mar 2008 10:34:20 +0000 (10:34 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 11 Mar 2008 10:34:20 +0000 (10:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToc.cpp

index d6ab24257c0ba686dd0faf11c9fa97534ee798f7..f0c91b28912c039aab58b4fb8e5806dcb2e81929 100644 (file)
@@ -145,8 +145,11 @@ bool GuiToc::initialiseParams(string const & data)
                        new_type = "table";
                else if (str.contains("\"algorithm"))
                        new_type = "algorithm";
-       } else
+       } else if (!data.empty())
                new_type = toqstr(data);
+       else
+               // Default to Outliner.
+               new_type = "tableofcontents";
 
        types_.clear();
        type_names_.clear();