From 181085ea1b06cf8629aa29ea5b07c6a6eb732a4c Mon Sep 17 00:00:00 2001 From: Royce551 Date: Sun, 22 May 2022 06:54:03 -0500 Subject: [PATCH] Remove obsolete code causing exceptions on deletion --- .../FRESHMusicPlayer-WPF/Pages/Library/SongEntry.xaml.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/SongEntry.xaml.cs b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/SongEntry.xaml.cs index 95058eb..437306f 100644 --- a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/SongEntry.xaml.cs +++ b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/SongEntry.xaml.cs @@ -74,7 +74,6 @@ namespace FRESHMusicPlayer.Pages.Library private void DeleteButtonClick(object sender, MouseButtonEventArgs e) { library.Remove(FilePath); - ((ListBox)Parent).Items.Remove(this); } private async void UserControl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)