Make sure the model exists before we access it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33668 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-08 12:42:18 +00:00
parent 92ebfe89e7
commit 60034997d9

View File

@ -440,6 +440,9 @@ void TocWidget::updateView()
void TocWidget::filterContents()
{
if (!tocTV->model())
return;
QModelIndexList indices = tocTV->model()->match(
tocTV->model()->index(0, 0),
Qt::DisplayRole, "*", -1,