mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
92ebfe89e7
commit
60034997d9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user