mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Closes #1725
This commit is contained in:
parent
828fb2c3f5
commit
8123a47898
2 changed files with 14 additions and 0 deletions
|
@ -627,6 +627,17 @@ SplitNotebook::SplitNotebook(Window *parent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SplitNotebook::showEvent(QShowEvent *)
|
||||||
|
{
|
||||||
|
if (auto page = this->getSelectedPage())
|
||||||
|
{
|
||||||
|
if (auto split = page->findChild<Split *>())
|
||||||
|
{
|
||||||
|
split->giveFocus(Qt::OtherFocusReason);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SplitNotebook::addCustomButtons()
|
void SplitNotebook::addCustomButtons()
|
||||||
{
|
{
|
||||||
// settings
|
// settings
|
||||||
|
|
|
@ -98,6 +98,9 @@ public:
|
||||||
SplitContainer *getOrAddSelectedPage();
|
SplitContainer *getOrAddSelectedPage();
|
||||||
void select(QWidget *page) override;
|
void select(QWidget *page) override;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void showEvent(QShowEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void addCustomButtons();
|
void addCustomButtons();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue