mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
more asserts
This commit is contained in:
parent
1ca5d38ad5
commit
e288742360
1 changed files with 3 additions and 1 deletions
|
@ -318,7 +318,7 @@ void NotebookTab::removeHighlightSources(const HighlightSources &toRemove)
|
|||
|
||||
if (!this->highlightSources_.highlightedSource.empty())
|
||||
{
|
||||
// keep HighlightState::Highlighted
|
||||
assert(this->highlightState_ == HighlightState::Highlighted);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -338,6 +338,8 @@ void NotebookTab::removeHighlightSources(const HighlightSources &toRemove)
|
|||
this->update();
|
||||
}
|
||||
}
|
||||
|
||||
assert(this->highlightState_ != HighlightState::Highlighted);
|
||||
}
|
||||
|
||||
void NotebookTab::copyHighlightStateAndSourcesFrom(const NotebookTab *sourceTab)
|
||||
|
|
Loading…
Reference in a new issue