Skip to content

Commit

Permalink
Copy highlight state before setting + rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
KleberPF committed May 18, 2024
1 parent be1e67e commit e786dc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/Notebook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,11 @@ void Notebook::duplicatePage(QWidget *page)
newContainer->applyFromDescriptor(descriptor);

int newTabPosition = this->indexOf(page) + 1;
auto highlightState = item->tab->highlightState();
auto *tab = this->addPageAt(
newContainer, newTabPosition,
item->tab->hasCustomTitle() ? item->tab->getCustomTitle() : "", false);
tab->setHighlightState(item->tab->highlightState());
tab->setHighlightState(highlightState);

newContainer->setTab(tab);
}
Expand Down

0 comments on commit e786dc1

Please sign in to comment.