*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
#include "remotefolder.h"
#include "partial_download.h"
#include "statusbar.h"
+#include "summaryview.h"
/* Dependecies to be removed ?! */
#include "prefs_common.h"
g_return_val_if_fail(item != NULL, -1);
g_return_val_if_fail(item->no_select == FALSE, -1);
+ summary_lock(mainwindow_get_mainwindow()->summaryview);
+
if (item->new_msgs) {
folder_item_update_freeze();
mlist = folder_item_get_msg_list(item);
folder_item_update(item, F_ITEM_UPDATE_MSGCNT);
+ summary_unlock(mainwindow_get_mainwindow()->summaryview);
+
item->opened = FALSE;
folder = item->folder;
else
tag = folder_item_get_xml(item->folder, item);
- return xml_node_new(tag, NULL);;
+ return xml_node_new(tag, NULL);
}
static GNode *folder_get_xml_node(Folder *folder)