Skip to content
Snippets Groups Projects
Commit 0bd8ccb1 authored by Lucas Garrido's avatar Lucas Garrido
Browse files

Solucion de error en la ventana altaListaReproduccion v2.1

parent 1e2f0271
No related branches found
No related tags found
No related merge requests found
......@@ -250,12 +250,16 @@ public class frmAltaListaDeReproduccion extends javax.swing.JDialog {
JOptionPane.showMessageDialog(null, "Deve seleccionar un usuario para continuar", "Avertencia:", JOptionPane.WARNING_MESSAGE);
return;
}
Sys.seleccionarUsuario(lstUsuarios.getSelectedValue());
if (Sys.obtenerCanalDeUsuario().getPrivacidad() == Privacidad.PRIVADO && rbPublica.isSelected() == true) {
JOptionPane.showMessageDialog(null, "Un canal privado no puede tener una lista de reproducion publica", "Avertencia:", JOptionPane.WARNING_MESSAGE);
return;
}
lst = new DtListaDeReproduccion(ListaDeReproduccion.getNuevoId(), txtNombre.getText(), Priv, TipoListaDeReproduccion.PARTICULAR, lstCategorias.getSelectedValue());
Sys.seleccionarUsuario(lstUsuarios.getSelectedValue());
if (!Sys.validarNuevaListaParticular(lst.getNombre())) {
JOptionPane.showMessageDialog(null, "El nombre para la lista de reproduccion ya esta usado", "Error:", JOptionPane.WARNING_MESSAGE);
......
......@@ -258,7 +258,9 @@ public class frmConsultaListaDeReproduccion extends javax.swing.JDialog {
int indexSeleccionado = lstVideos.getSelectedIndex();
int idVideo = Listavideos.get(indexSeleccionado).getId();
new frmConsultaVideo(this, true, lstUsuarios.getSelectedValue(), idVideo).setVisible(true);
DtUsuario Usu = Sys.obtenerPropietarioDeVideo(idVideo);
new frmConsultaVideo(this, true, Usu.getNickname(), idVideo).setVisible(true);
}//GEN-LAST:event_lstVideosMouseClicked
// Variables declaration - do not modify//GEN-BEGIN:variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment