fix repaint after set default file
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 2 Jun 2008 14:32:30 +0000 (16:32 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 2 Jun 2008 14:32:30 +0000 (16:32 +0200)
src/net/pterodactylus/jsite/gui/FileManager.java

index 5bd52e8..e513d23 100644 (file)
@@ -275,6 +275,8 @@ public class FileManager extends JDialog implements I18nable, TreeSelectionListe
                                }
                                String completePath = projectFileWrapper.getProjectFile().getCompletePath();
                                project.setDefaultFile(completePath);
+                               fileTree.setShowsRootHandles(false);
+                               fileTree.repaint();
                        }
                };
                applyInsertOverrideAction = new I18nAction("fileManager.menu.item.applyInsertOverride") {