提交 24b614b1 编写于 作者: R rupashka

6520574: JFileChooser - create new folder - not editable

Reviewed-by: malenkov
上级 9d2c1176
...@@ -486,7 +486,7 @@ public class BasicDirectoryModel extends AbstractListModel implements PropertyCh ...@@ -486,7 +486,7 @@ public class BasicDirectoryModel extends AbstractListModel implements PropertyCh
} }
if (remSize > 0 && addSize == 0) { if (remSize > 0 && addSize == 0) {
fireIntervalRemoved(BasicDirectoryModel.this, remStart, remStart + remSize - 1); fireIntervalRemoved(BasicDirectoryModel.this, remStart, remStart + remSize - 1);
} else if (addSize > 0 && remSize == 0 && fileCache.size() > addSize) { } else if (addSize > 0 && remSize == 0 && addStart + addSize <= fileCache.size()) {
fireIntervalAdded(BasicDirectoryModel.this, addStart, addStart + addSize - 1); fireIntervalAdded(BasicDirectoryModel.this, addStart, addStart + addSize - 1);
} else { } else {
fireContentsChanged(); fireContentsChanged();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册