On Tue, Mar 04, 2008 at 12:28:33PM +0100, Pavel Sanda wrote: > > still some touches needed due to resets after editing actions, will look > > into > > it. > > will you be oposed to this patch? > > pavel
> diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp > index c51740b..4948eeb 100644 > --- a/src/frontends/qt4/TocWidget.cpp > +++ b/src/frontends/qt4/TocWidget.cpp > @@ -19,6 +19,7 @@ > #include "support/debug.h" > > #include <QHeaderView> > +#include <QTimer> > > #include <vector> > > @@ -239,6 +240,7 @@ void TocWidget::updateGui(int selected_type) > typeCO->blockSignals(false); > > setTocModel(typeCO->currentIndex()); > + QTimer::singleShot(1, this, SLOT(setTreeDepth())); > } '0' should do... > diff --git a/src/frontends/qt4/TocWidget.h b/src/frontends/qt4/TocWidget.h > index bad9da2..a24a2f1 100644 > --- a/src/frontends/qt4/TocWidget.h > +++ b/src/frontends/qt4/TocWidget.h > @@ -51,6 +51,7 @@ protected Q_SLOTS: > void on_moveDownTB_clicked(); > void on_moveInTB_clicked(); > void on_moveOutTB_clicked(); > + void setTreeDepth() { setTreeDepth(depth_); }; Last semicolon is somewhere between superflous and wrong... Andre'