Skip to content

Commit

Permalink
Ensure eltdiff object is clear if loading the initial folder state
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 19, 2014
1 parent 88e9092 commit 034cda3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions imp/lib/Ajax/Application/Handler/Dynamic.php
Expand Up @@ -288,14 +288,15 @@ public function listMailboxes()
{
global $injector, $prefs, $session;

$ftree = $injector->getInstance('IMP_Ftree');
$iterator = new AppendIterator();

/* This might be a long running operation. */
if ($this->vars->initial) {
$session->close();
$ftree->eltdiff->clear();
}

$ftree = $injector->getInstance('IMP_Ftree');
$iterator = new AppendIterator();

if ($this->vars->reload) {
$ftree->init();
}
Expand Down

0 comments on commit 034cda3

Please sign in to comment.