summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorronso0 <ronso0@mixxx.org>2020-10-24 22:34:33 +0200
committerronso0 <ronso0@mixxx.org>2020-10-24 22:34:33 +0200
commitf229b6856d9fa8bd82cb499d0f9632ef25608b44 (patch)
tree9c297b698181e8b49071fa7cafadc91026d50333
parent8ba54e88df9938f8b357511a32f863e000c57339 (diff)
Controlpickermenu: use plain pointer for sampler submenus
-rw-r--r--src/controllers/controlpickermenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/controlpickermenu.cpp b/src/controllers/controlpickermenu.cpp
index c8147c8d3b..aefb3fa833 100644
--- a/src/controllers/controlpickermenu.cpp
+++ b/src/controllers/controlpickermenu.cpp
@@ -1099,11 +1099,11 @@ void ControlPickerMenu::addPlayerControl(QString control, QString controlTitle,
}
if (samplerControls) {
- parented_ptr<QMenu> samplerControlMenu = make_parented<QMenu>(tr("Samplers"), controlMenu);
+ QMenu* samplerControlMenu = new QMenu(tr("Samplers"), controlMenu);
controlMenu->addMenu(samplerControlMenu);
- parented_ptr<QMenu> samplerResetControlMenu = nullptr;
+ QMenu* samplerResetControlMenu = nullptr;
if (resetControlMenu) {
- samplerResetControlMenu = make_parented<QMenu>(tr("Samplers"), resetControlMenu);
+ samplerResetControlMenu = new QMenu(tr("Samplers"), resetControlMenu);
resetControlMenu->addMenu(samplerResetControlMenu);
}
for (int i = 1; i <= iNumSamplers; ++i) {