mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Do not call setSelectedIndex on frame JList if there are no frames.
This commit is contained in:
parent
ae4b000c3f
commit
615d6d6623
@ -1719,7 +1719,9 @@ class UpdateContext implements Runnable {
|
||||
toolTips.addElement(location);
|
||||
}
|
||||
db.context.enableUpdate();
|
||||
ctx.setSelectedIndex(0);
|
||||
if (frameCount != 0) {
|
||||
ctx.setSelectedIndex(0);
|
||||
}
|
||||
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user