]> git.lyx.org Git - features.git/commit
Fix Toc dialog crash when TOC is empty.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 16 Oct 2006 08:51:55 +0000 (08:51 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 16 Oct 2006 08:51:55 +0000 (08:51 +0000)
commit0823fb6f86993ed715948d65457234b2899803c3
tree31173be4394d70a6ffa6a92cc73d6a5f6655056f
parent77e145a406e1cdbf1dcf9875430085c3a3587095
Fix Toc dialog crash when TOC is empty.

* QToc::update(): return early if no TOC type.

* QTocDialog::updateGui(): return early of the Type model is empty and disable the outline buttons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15346 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/QToc.C
src/frontends/qt4/QTocDialog.C