mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
EditWindow: bug fix of tag status update
This commit is contained in:
parent
6793855164
commit
a53fdf27b6
@ -365,10 +365,12 @@ void VEditWindow::updateTabStatus(int p_index)
|
||||
return;
|
||||
}
|
||||
|
||||
VEditTab *tab = getTab(p_index);
|
||||
emit tabStatusUpdated(tab->fetchTabInfo());
|
||||
emit outlineChanged(tab->getOutline());
|
||||
emit currentHeaderChanged(tab->getCurrentHeader());
|
||||
if (p_index == currentIndex()) {
|
||||
VEditTab *tab = getTab(p_index);
|
||||
emit tabStatusUpdated(tab->fetchTabInfo());
|
||||
emit outlineChanged(tab->getOutline());
|
||||
emit currentHeaderChanged(tab->getCurrentHeader());
|
||||
}
|
||||
|
||||
updateTabInfo(p_index);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user