mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
fixed spurious rviz crash?
This commit is contained in:
parent
12582f6bbc
commit
3adc516037
@ -260,10 +260,10 @@ void TaskView::onCurrentStageChanged(const QModelIndex ¤t, const QModelInd
|
||||
QAbstractItemModel *m = task ? task->getSolutionModel(task_index) : nullptr;
|
||||
view->sortByColumn(-1);
|
||||
view->setModel(m);
|
||||
delete sm; // we don't store the selection model
|
||||
if (sm) delete sm; // we don't store the selection model
|
||||
sm = view->selectionModel();
|
||||
|
||||
if (m) {
|
||||
sm = view->selectionModel();
|
||||
if (sm) {
|
||||
connect(sm, SIGNAL(currentChanged(QModelIndex, QModelIndex)),
|
||||
this, SLOT(onCurrentSolutionChanged(QModelIndex,QModelIndex)));
|
||||
connect(sm, SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user