Skip to content

Commit

Permalink
Protect against infinite loop if expanding all mailboxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 10, 2015
1 parent bdf96ad commit 0f63b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3488,7 +3488,7 @@ var ImpBase = {
return;
}

if (mode == 'tog' || mode == 'expall') {
if (!opts.noexpand && (mode == 'tog' || mode == 'expall')) {
subs.invoke('previous').each(function(s) {
var s2 = this.flist.getMbox(s);
if (!s2.loaded()) {
Expand Down

0 comments on commit 0f63b6e

Please sign in to comment.