This is worth having here anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33703 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-10 18:43:10 +00:00
parent 0bddd759d7
commit 56d89dbff9

View File

@ -315,11 +315,6 @@ void TocWidget::on_typeCO_currentIndexChanged(int index)
{ {
current_type_ = typeCO->itemData(index).toString(); current_type_ = typeCO->itemData(index).toString();
updateView(); updateView();
// In Qt 4.6.x, we can end up here programmatically, when the
// model is rebuilt. But the Buffer may not be ready for us to
// reset focus, start the cursor, etc. So we check to see if the
// combo box has focus. It will, if the user has changed the
// value.
if (typeCO->hasFocus()) if (typeCO->hasFocus())
gui_view_.setFocus(); gui_view_.setFocus();
} }