mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
b51f1f7800
commit
293b8dbe67
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user