mu: write contacts-cache a bit sooner
Write the changes to the cache file after any indexing operation, so `mu cfind` gets new contacts a bit sooner.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* -*-mode: c++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8-*- */
|
||||
/*
|
||||
** Copyright (C) 2011-2012 <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2011-2016 <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -148,6 +148,8 @@ public:
|
||||
g_warning ("ref count != 0");
|
||||
|
||||
mu_contacts_destroy (_contacts);
|
||||
_contacts = NULL;
|
||||
|
||||
if (!_read_only)
|
||||
mu_store_flush (this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user