Skip to content

Commit 5aa7fce

Browse files
committed
window-list: Fix panel crash when closing a dialog
1 parent 56c0a42 commit 5aa7fce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/panel/widgets/window-list/window-list.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ void WayfireWindowList::set_button_width(int width)
192192
{
193193
std::cout << "set width " << width << std::endl;
194194
for (auto& toplevel : toplevels)
195-
toplevel.second->set_width(width);
195+
{
196+
if (toplevel.second)
197+
toplevel.second->set_width(width);
198+
}
196199
}
197200

198201
int WayfireWindowList::get_default_button_width()

0 commit comments

Comments
 (0)