summaryrefslogtreecommitdiff
path: root/Userland/Applications/Mail/MailboxTreeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Mail/MailboxTreeModel.cpp')
-rw-r--r--Userland/Applications/Mail/MailboxTreeModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Mail/MailboxTreeModel.cpp b/Userland/Applications/Mail/MailboxTreeModel.cpp
index 44b16b6ea2..583021941e 100644
--- a/Userland/Applications/Mail/MailboxTreeModel.cpp
+++ b/Userland/Applications/Mail/MailboxTreeModel.cpp
@@ -48,14 +48,14 @@ GUI::ModelIndex MailboxTreeModel::parent_index(GUI::ModelIndex const& index) con
if (!mailbox_node.has_parent()) {
for (size_t row = 0; row < mailbox_node.associated_account().mailboxes().size(); ++row) {
- if (&mailbox_node.associated_account().mailboxes()[row] == &mailbox_node) {
+ if (mailbox_node.associated_account().mailboxes()[row] == &mailbox_node) {
return create_index(row, index.column(), &mailbox_node.associated_account());
}
}
} else {
VERIFY(mailbox_node.parent()->has_children());
for (size_t row = 0; row < mailbox_node.parent()->children().size(); ++row) {
- if (&mailbox_node.parent()->children()[row] == &mailbox_node) {
+ if (mailbox_node.parent()->children()[row] == &mailbox_node) {
return create_index(row, index.column(), mailbox_node.parent());
}
}