We were doing this twice, and I think there's also a bug here, namely,

that we weren't re-enabling if we returned early.

Someone tell me if this is wrong.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33585 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-02-26 19:56:08 +00:00
parent 805231ccbe
commit 3906792378

View File

@ -321,7 +321,6 @@ void TocWidget::on_typeCO_currentIndexChanged(int index)
void TocWidget::outline(FuncCode func_code)
{
enableControls(false);
QModelIndexList const & list = tocTV->selectionModel()->selectedIndexes();
if (list.isEmpty())
return;