mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 11:56:45 +01:00
Fix a crash when deleting a search term from the smart playlist wizard on OS X.
This commit is contained in:
parent
371b63e159
commit
561ac96e89
@ -20,6 +20,7 @@
|
||||
#include "searchtermwidget.h"
|
||||
#include "ui_querysearchpage.h"
|
||||
#include "ui_querysortpage.h"
|
||||
#include "core/logging.h"
|
||||
|
||||
#include <QScrollBar>
|
||||
#include <QWizardPage>
|
||||
@ -239,7 +240,7 @@ void QueryWizardPlugin::RemoveSearchTerm() {
|
||||
if (index == -1)
|
||||
return;
|
||||
|
||||
delete search_page_->terms_.takeAt(index);
|
||||
search_page_->terms_.takeAt(index)->deleteLater();
|
||||
UpdateTermPreview();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user