Fix crash here...

This commit is contained in:
rock88 2020-06-07 22:55:30 +03:00
parent 4d3097af1b
commit afbe5d9417

View file

@ -27,9 +27,11 @@ HostButton::HostButton(Widget* parent, const std::string &address): Button(paren
m_host_status_icon = FA_POWER_OFF;
}
if (ref_count() > 1) {
if (auto scr = screen()) {
scr->perform_layout();
}
}
dec_ref();
});