Skip to content

Commit

Permalink
disabled edit and delete for recently added playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
tayal007 authored Nov 12, 2016
1 parent 5031ce7 commit b4243e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/beatboxer/BeatBoxerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void editItem() {
}
if(tabSelected==2){
BBItem selectedPlayList;
if(playlistListView.getSelectionModel().getSelectedIndex()<=1){
if(playlistListView.getSelectionModel().getSelectedIndex()<=2){
return;
}
selectedPlayList = playlistListView.getSelectionModel().getSelectedItem();
Expand Down Expand Up @@ -264,7 +264,7 @@ private void deleteItem() throws Exception{
}
if(tabSelected==2){
BBItem selectedPlayList;
if(playlistListView.getSelectionModel().getSelectedIndex()<=1){
if(playlistListView.getSelectionModel().getSelectedIndex()<=2){
return;
}
selectedPlayList = playlistListView.getSelectionModel().getSelectedItem();
Expand Down

0 comments on commit b4243e7

Please sign in to comment.