From: Abdelrazak Younes Date: Tue, 11 Mar 2008 10:34:20 +0000 (+0000) Subject: Navigator: default to table of contents. X-Git-Tag: 1.6.10~5699 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=94ff60ec7eb0284ed2f9625ab2e82a4ea62097bf;p=features.git Navigator: default to table of contents. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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();