Abdelrazak Younes wrote: > It was easy so I've done it at the end. Thanks. No I finally understood the problem. Attached is a quick and easy fix for branch.
Jürgen
Index: src/frontends/qt4/TocWidget.cpp =================================================================== --- src/frontends/qt4/TocWidget.cpp (Revision 22920) +++ src/frontends/qt4/TocWidget.cpp (Arbeitskopie) @@ -49,6 +49,8 @@ connect(form, SIGNAL(modelReset()), SLOT(updateGui())); + connect(form, SIGNAL(modelReset()), + SLOT(resetType())); FileName icon_path = libFileSearch("images", "promote.xpm"); moveOutTB->setIcon(QIcon(toqstr(icon_path.absFilename()))); @@ -269,6 +271,12 @@ } +void TocWidget::resetType() +{ + typeCO->setCurrentIndex(form_->selectedType()); +} + + void TocWidget::setTocModel(size_t type) { bool controls_enabled = false; Index: src/frontends/qt4/TocWidget.h =================================================================== --- src/frontends/qt4/TocWidget.h (Revision 22920) +++ src/frontends/qt4/TocWidget.h (Arbeitskopie) @@ -33,6 +33,8 @@ protected Q_SLOTS: /// Update Gui of the display. void updateGui(); + /// reset List type to param + void resetType(); /// void setTocModel(size_t type); ///