Navigator: default to table of contents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-11 10:34:20 +00:00
parent c81e3a0203
commit 94ff60ec7e

View 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();