diff options
Diffstat (limited to 'Applications/IRCClient/IRCWindowListModel.cpp')
-rw-r--r-- | Applications/IRCClient/IRCWindowListModel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Applications/IRCClient/IRCWindowListModel.cpp b/Applications/IRCClient/IRCWindowListModel.cpp index 6b50450203..4c2c227d58 100644 --- a/Applications/IRCClient/IRCWindowListModel.cpp +++ b/Applications/IRCClient/IRCWindowListModel.cpp @@ -63,13 +63,15 @@ GUI::Model::ColumnMetadata IRCWindowListModel::column_metadata(int column) const { switch (column) { case Column::Name: - return { 70, Gfx::TextAlignment::CenterLeft }; + return { 70 }; } ASSERT_NOT_REACHED(); } GUI::Variant IRCWindowListModel::data(const GUI::ModelIndex& index, Role role) const { + if (role == Role::TextAlignment) + return Gfx::TextAlignment::CenterLeft; if (role == Role::Display) { switch (index.column()) { case Column::Name: { |