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 ...@@ -94,7 +94,7 @@ ConversationsAdapter::selectConversation(const QString& accountId, const QString
Utils::oneShotConnect(&LRCInstance::instance(), Utils::oneShotConnect(&LRCInstance::instance(),
&LRCInstance::currentAccountChanged, &LRCInstance::currentAccountChanged,
[selectConversation] { selectConversation(); }); [selectConversation] { selectConversation(); });
LRCInstance::setSelectedConvId(); // Hack UI LRCInstance::setSelectedConvId();
LRCInstance::setSelectedAccountId(convInfo.accountId); LRCInstance::setSelectedAccountId(convInfo.accountId);
} else { } else {
selectConversation(); selectConversation();
...@@ -224,7 +224,8 @@ ConversationsAdapter::connectConversationModel(bool updateFilter) ...@@ -224,7 +224,8 @@ ConversationsAdapter::connectConversationModel(bool updateFilter)
conversationSmartListModel_ conversationSmartListModel_
->fillConversationsList(); ->fillConversationsList();
updateConversationsFilterWidget(); updateConversationsFilterWidget();
emit indexRepositionRequested(); if (!LRCInstance::getCurrentConvUid().isEmpty())
emit indexRepositionRequested();
emit updateListViewRequested(); 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