Do not unnecessarily reset the outliner to TOC on internal model changes

The activated() signal is only issued on user changes, what we want here,
not internal model changes (as with currentIndexChanged())
This commit is contained in:
Juergen Spitzmueller 2022-11-02 12:33:20 +01:00
parent b51f1f7800
commit 293b8dbe67
2 changed files with 2 additions and 3 deletions

View File

@ -346,9 +346,8 @@ void TocWidget::setTreeDepth(int depth)
}
void TocWidget::on_typeCO_currentIndexChanged(int index)
void TocWidget::on_typeCO_activated(int index)
{
if (index == -1)
return;
current_type_ = typeCO->itemData(index).toString();

View File

@ -73,7 +73,7 @@ protected Q_SLOTS:
void on_sortCB_stateChanged(int state);
void on_persistentCB_stateChanged(int state);
void on_depthSL_valueChanged(int depth);
void on_typeCO_currentIndexChanged(int value);
void on_typeCO_activated(int value);
void on_moveUpTB_clicked();
void on_moveDownTB_clicked();
void on_moveInTB_clicked();