From 94ff60ec7eb0284ed2f9625ab2e82a4ea62097bf Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 11 Mar 2008 10:34:20 +0000 Subject: [PATCH] Navigator: default to table of contents. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index d6ab24257c..f0c91b2891 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -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();