]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdBuildOptions.java
Ensure the validity of Ffs Sections when adding a new Sections to Ffs.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdBuildOptions.java
index 03a4ed5f98d59e1e5fc4bd801ac2ad7e7342dba6..dae2aed050218f2895551708dbcb5c8873f01572 100644 (file)
@@ -625,6 +625,10 @@ public class FpdBuildOptions extends IInternalFrame {
                     docConsole.setSaved(false);\r
                     ffc.removeBuildOptionsFfs(jTableFfs.getSelectedRow());\r
                     ffsTableModel.removeRow(jTableFfs.getSelectedRow());\r
+                    sectionTableModel.setRowCount(0);\r
+                    sectionsTableModel.setRowCount(0);\r
+                    subsectionsTableModel.setRowCount(0);\r
+                    ffsAttributesTableModel.setRowCount(0);\r
                 }\r
             });\r
         }\r
@@ -1164,6 +1168,7 @@ public class FpdBuildOptions extends IInternalFrame {
                     sectionsTableModel.removeRow(jTableFfsSections.getSelectedRow());\r
                     ffc.removeBuildOptionsFfsSectionsSections(jTableFfs.getSelectedRow(),\r
                                                               jTableFfsSections.getSelectedRow());\r
+                    subsectionsTableModel.setRowCount(0);\r
                 }\r
             });\r
         }\r