Ignore:
Timestamp:
Sep 2, 2010, 7:28:18 PM (14 years ago)
Author:
mlg
Message:

Bug fixing :
bug:0001838 I fixed it by calling the refresh of the thumbnail panel only once : at the end of the file sending.
The two thread don't try to access to the session manager at the same time...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/ThumbnailCategoryPanel.java

    r6833 r6839  
    44import java.io.File;
    55
    6 import javax.swing.BoxLayout;
    76import javax.swing.JOptionPane;
    87import javax.swing.JPanel;
     
    1413import fr.mael.jiwigo.transverse.util.filedrop.FileDrop;
    1514import fr.mael.jiwigo.ui.ImagesManagement;
     15import fr.mael.jiwigo.ui.layout.VerticalLayout;
    1616
    1717/**
     
    6262        this.categoryId = categoryId;
    6363        //      this.setLayout(new FlowLayout());
    64         this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
     64        //      this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
     65        this.setLayout(new VerticalLayout());
    6566        //      this.setPreferredSize(new Dimension(900, 800));
    6667        if (categoryId != null) {
     
    131132
    132133                    ImageService.getInstance().creer(files[i].getCanonicalPath(), categoryId);
    133                     //on rafraichit
    134                     rafraichir(categoryId, true);
    135134                    MainFrame.getInstance().setReussiteMessage(
    136135                            files[i].getName() + " " + Messages.getMessage("sendingSuccess"));
     
    146145                }
    147146            }
     147            //on rafraichit
     148            rafraichir(categoryId, true);
    148149            MainFrame.getInstance().getProgressBar().setValue(0);
    149150        }
     
    205206        }
    206207    }
     208
    207209}
Note: See TracChangeset for help on using the changeset viewer.