Skip to content
Snippets Groups Projects
Commit 66b9dd82 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

conversations: prevent account reselection on filterChanged event

Change-Id: Iab0a6a2316ccc3529829e9ff9cdd3ca643ccdac2
parent fd82ae2c
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ ConversationsAdapter::selectConversation(const QString& accountId, const QString
Utils::oneShotConnect(&LRCInstance::instance(),
&LRCInstance::currentAccountChanged,
[selectConversation] { selectConversation(); });
LRCInstance::setSelectedConvId(); // Hack UI
LRCInstance::setSelectedConvId();
LRCInstance::setSelectedAccountId(convInfo.accountId);
} else {
selectConversation();
......@@ -224,7 +224,8 @@ ConversationsAdapter::connectConversationModel(bool updateFilter)
conversationSmartListModel_
->fillConversationsList();
updateConversationsFilterWidget();
emit indexRepositionRequested();
if (!LRCInstance::getCurrentConvUid().isEmpty())
emit indexRepositionRequested();
emit updateListViewRequested();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment