Do not call setSelectedIndex on frame JList if there are no frames.

git-svn-id: svn://10.0.0.236/trunk@136974 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2003-01-26 18:33:30 +00:00
parent d31446dce8
commit dab395fb7b

View File

@@ -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));
}
};