diff --git a/Userland/Applications/Mail/MailboxTreeModel.cpp b/Userland/Applications/Mail/MailboxTreeModel.cpp index 583021941e..ce263a4310 100644 --- a/Userland/Applications/Mail/MailboxTreeModel.cpp +++ b/Userland/Applications/Mail/MailboxTreeModel.cpp @@ -21,17 +21,17 @@ GUI::ModelIndex MailboxTreeModel::index(int row, int column, GUI::ModelIndex con if (!parent.is_valid()) { if (m_account_holder.accounts().is_empty()) return {}; - return create_index(row, column, &m_account_holder.accounts().at(row)); + return create_index(row, column, m_account_holder.accounts().at(row)); } auto& base_node = *static_cast(parent.internal_data()); if (is(base_node)) { auto& remote_mailbox = verify_cast(base_node); - return create_index(row, column, &remote_mailbox.children().at(row)); + return create_index(row, column, remote_mailbox.children().at(row)); } auto& remote_parent = verify_cast(base_node); - return create_index(row, column, &remote_parent.mailboxes().at(row)); + return create_index(row, column, remote_parent.mailboxes().at(row)); } GUI::ModelIndex MailboxTreeModel::parent_index(GUI::ModelIndex const& index) const