1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 19:38:12 +00:00

Inspector: Make the window icon show up for Window objects again

This broke in the GWindow => GUI::Window rename.
This commit is contained in:
Andreas Kling 2020-03-05 09:24:10 +01:00
parent 849fdc1c0b
commit 41c4e661e5

View file

@ -98,7 +98,7 @@ GUI::Variant RemoteObjectGraphModel::data(const GUI::ModelIndex& index, Role rol
{
auto* remote_object = static_cast<RemoteObject*>(index.internal_data());
if (role == Role::Icon) {
if (remote_object->class_name == "GWindow")
if (remote_object->class_name == "Window")
return m_window_icon;
return m_object_icon;
}