--- src/gui/itemviews/qtreewidget.cpp.orig 2007-10-01 15:06:12.000000000 +0200 +++ src/gui/itemviews/qtreewidget.cpp 2007-10-18 16:33:29.000000000 +0200 @@ -733,10 +733,7 @@ int column = view()->header()->sortIndicatorSection(); Qt::SortOrder order = view()->header()->sortIndicatorOrder(); QTreeModel *that = const_cast(this); - const bool blocked = that->signalsBlocked(); - that->blockSignals(true); that->sort(column, order); - that->blockSignals(blocked); emit that->itemsSorted(); return true; } @@ -1309,7 +1306,7 @@ QTreeModel *model = ::qobject_cast(view->model()); model->rootItem->addChild(this); values.reserve(model->headerItem->columnCount()); - + model->executePendingSort(); } }