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