Skip to content

Commit

Permalink
corretto ordinamento sessioni nel metodo SessionsManager.getAllSessio…
Browse files Browse the repository at this point in the history
…ns();
  • Loading branch information
Davide Valsecchi committed Jul 27, 2012
1 parent a9fa319 commit be8830d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -225,6 +226,7 @@ public List<Session> getAllSessions() {
for (Session s : sessionsMap.values()) {
all.add(s);
}
Collections.sort(all);
return all;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be8830d

Please sign in to comment.