[izpack-changes] r1794 - in izpack-src/branches/3.10: . src/lib/com/izforge/izpack/panels

noreply at berlios.de noreply at berlios.de
Wed Mar 28 15:28:26 CEST 2007


Author: jponge
Date: 2007-03-28 15:28:24 +0200 (Wed, 28 Mar 2007)
New Revision: 1794

Modified:
   izpack-src/branches/3.10/Versions.txt
   izpack-src/branches/3.10/src/lib/com/izforge/izpack/panels/PacksModel.java
Log:
PacksModel: the number of required bytes could be wrong when selecting and deselecting packs. (Stefan Wachter via Julien Ponge)


Modified: izpack-src/branches/3.10/Versions.txt
===================================================================
--- izpack-src/branches/3.10/Versions.txt	2007-03-25 16:07:16 UTC (rev 1793)
+++ izpack-src/branches/3.10/Versions.txt	2007-03-28 13:28:24 UTC (rev 1794)
@@ -20,6 +20,8 @@
   (Vladimir Ralev)
 - Fixed an XML error in the French langpack. (Julien Ponge, reported by Ari Voutilainen).
 - Compile listeners are included in izevent.jar (Julien Ponge).
+- PacksModel: the number of required bytes could be wrong when selecting and deselecting
+  packs. (Stefan Wachter via Julien Ponge)
 
   > 3.10.0 (build 2007.01.29)
 

Modified: izpack-src/branches/3.10/src/lib/com/izforge/izpack/panels/PacksModel.java
===================================================================
--- izpack-src/branches/3.10/src/lib/com/izforge/izpack/panels/PacksModel.java	2007-03-25 16:07:16 UTC (rev 1793)
+++ izpack-src/branches/3.10/src/lib/com/izforge/izpack/panels/PacksModel.java	2007-03-28 13:28:24 UTC (rev 1794)
@@ -346,23 +346,15 @@
                             checkValues[rowIndex] = 1;
                         }
                     }                    
-                    updateExcludes(rowIndex);
-                    updateDeps();
-                    this.updateConditions();
-                    int bytes = panel.getBytes();
-                    bytes += pack.nbytes;
-                    panel.setBytes(bytes);
                 }                
                 else
                 {
                     checkValues[rowIndex] = 0;
-                    updateExcludes(rowIndex);
-                    updateDeps();
-                    this.updateConditions();
-                    int bytes = panel.getBytes();
-                    bytes -= pack.nbytes;
-                    panel.setBytes(bytes);
                 }
+                updateExcludes(rowIndex);
+                updateDeps();
+                updateConditions();
+                updateBytes();
                 fireTableDataChanged();
                 refreshPacksToInstall();
                 panel.showSpaceRequired();
@@ -456,10 +448,9 @@
                 }
             }
         }
-        this.UpdateBytes();
     }
 
-    private void UpdateBytes()
+    private void updateBytes()
     {
         int bytes = 0;
         for (int q = 0; q < packs.size(); q++)




More information about the izpack-changes mailing list