From 801658c6b9d1e730aef9d280f85e557aacb7155f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 19 Dec 2025 00:38:32 +0100 Subject: [PATCH] MainWindow: Check that current is the active playlist Fixes #1783 --- src/core/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index 5f6a31153..6127cef96 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -3318,7 +3318,7 @@ void MainWindow::PlaylistDelete() { if (DeleteConfirmationDialog::warning(files) != QDialogButtonBox::Yes) return; - if (app_->player()->GetState() == EngineBase::State::Playing && app_->playlist_manager()->current()->rowCount() == selected_songs.count()) { + if (app_->player()->GetState() == EngineBase::State::Playing && app_->playlist_manager()->current() == app_->playlist_manager()->active() && app_->playlist_manager()->current()->rowCount() == selected_songs.count()) { app_->player()->Stop(); }