Commit 9e25cb42 authored by David Faure's avatar David Faure
Browse files

Merge remote-tracking branch 'origin/release/20.12'

parents a35c738e 53ed9a56
Pipeline #41958 passed with stage
in 39 minutes and 47 seconds
...@@ -43,7 +43,10 @@ unsigned long StorageModel::preSelectedMessage() const ...@@ -43,7 +43,10 @@ unsigned long StorageModel::preSelectedMessage() const
void StorageModel::savePreSelectedMessage(unsigned long uniqueIdOfMessage) void StorageModel::savePreSelectedMessage(unsigned long uniqueIdOfMessage)
{ {
const QString storageModelId = id(); const QString storageModelId = id();
Q_ASSERT(!storageModelId.isEmpty()); if (storageModelId.isEmpty()) {
// This happens when deleting a collection, and this is called when switching away from it
KConfigGroup conf(MessageListSettings::self()->config(), KConfigGroup conf(MessageListSettings::self()->config(),
MessageList::Util::storageModelSelectedMessageGroup()); MessageList::Util::storageModelSelectedMessageGroup());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment