mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
some more stuff
This commit is contained in:
parent
a566a74ef0
commit
46361ea859
2 changed files with 9 additions and 1 deletions
|
@ -60,7 +60,8 @@ void QuickSwitcherPopup::initWidgets()
|
|||
auto vbox = creator.setLayoutType<QVBoxLayout>();
|
||||
|
||||
{
|
||||
vbox.emplace<QLineEdit>().assign(&this->ui_.searchEdit);
|
||||
auto lineEdit = vbox.emplace<QLineEdit>().assign(&this->ui_.searchEdit);
|
||||
lineEdit->setPlaceholderText("Jump to a channel or open a new one");
|
||||
QObject::connect(this->ui_.searchEdit, &QLineEdit::textChanged, this,
|
||||
&QuickSwitcherPopup::updateSuggestions);
|
||||
|
||||
|
|
|
@ -230,6 +230,13 @@ void SplitContainer::addSplit(Split *split)
|
|||
|
||||
void SplitContainer::setSelected(Split *split)
|
||||
{
|
||||
// safety
|
||||
if (std::find(this->splits_.begin(), this->splits_.end(), split) ==
|
||||
this->splits_.end())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this->selected_ = split;
|
||||
|
||||
if (Node *node = this->baseNode_.findNodeContainingSplit(split))
|
||||
|
|
Loading…
Reference in a new issue