Permalink
Browse files

corretto ordinamento sessioni nel metodo SessionsManager.getAllSessio…

…ns();
  • Loading branch information...
1 parent a9fa319 commit be8830d8f24c331d22c8c959c6fe7595836eb588 Davide Valsecchi committed Jul 27, 2012
View
2 QuickAgenda/src/it/valsecchi/quickagenda/data/component/SessionsManager.java
@@ -7,6 +7,7 @@
import it.valsecchi.quickagenda.data.component.exception.SessionNotFoundException;
import java.util.ArrayList;
import java.util.Calendar;
+import java.util.Collections;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
@@ -225,6 +226,7 @@ public Session getSessionByHash(String hash)
for (Session s : sessionsMap.values()) {
all.add(s);
}
+ Collections.sort(all);
return all;
}
View
2 QuickAgenda/src/it/valsecchi/quickagenda/windows/detail/WorkDetailWindow.java
@@ -589,7 +589,7 @@ public void mouseClicked(MouseEvent arg) {
if (arg.getClickCount() == 2) {
// si ricava l'id
String id = (String) table
- .getValueAt(table.getSelectedRow(), 0);
+ .getValueAt(table.getSelectedRow(), 4);
// si apre la finestra di dettagli
SessionDetailWindow detail = new SessionDetailWindow(id, data);
detail.setVisible(true);

0 comments on commit be8830d

Please sign in to comment.