Hi,

I finally started doing something instead of just examining. The code is available in the tags branch in: git://git.mildred.fr/pub/mildred/trojita.git (and for some reason, my cgit front-end cannot accessthis new repository, I'll have to look at it)

What i did is create a TreeView containing tags. When a mailbox is selected, the TagListModel (a new class I created) is populated with TreeItemMailbox::syncState.

The problem is that I only get the syncState in cache, and not the latest version. When I first select a mailbox, I get an empty list.i have to deselect it and re-select it to get the actual tag list.

the signal comes from the mailbox tree view, and is sent to the TagListModel::setMailbox (I took inspiration from MsgListModel that also changes when a mailbox is selected). And in setmailbox, I directly take the TreeItemMailbox::syncState::flags list to get the list of tags.

Why isn't there a signal in TreeItemMailbox to notify when the SELECT command has completed?

How would you do things?

Thanks,

Mildred

Reply via email to