summaryrefslogtreecommitdiffstats
path: root/src/widget/wlibrarysidebar.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 17:45:30 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 17:45:30 +0100
commit95a5716a54b6bc0f937ea08755bdfc4cd01ee351 (patch)
treef575fd31ae7f9482df0c46880109da554a3b732e /src/widget/wlibrarysidebar.cpp
parent3f7b674633fdb7b314ef4ecefd6223928872b92f (diff)
parent72b91833a8e7049e75328d32b00c596c4516022a (diff)
Merge branch '2.3' of github.com:mixxxdj/mixxx into main
Diffstat (limited to 'src/widget/wlibrarysidebar.cpp')
-rw-r--r--src/widget/wlibrarysidebar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp
index f6be444e29..af60457065 100644
--- a/src/widget/wlibrarysidebar.cpp
+++ b/src/widget/wlibrarysidebar.cpp
@@ -212,7 +212,7 @@ void WLibrarySidebar::keyPressEvent(QKeyEvent* event) {
}
void WLibrarySidebar::selectIndex(const QModelIndex& index) {
- auto pModel = new QItemSelectionModel(model());
+ auto* pModel = new QItemSelectionModel(model());
pModel->select(index, QItemSelectionModel::Select);
if (selectionModel()) {
selectionModel()->deleteLater();
@@ -234,7 +234,7 @@ void WLibrarySidebar::selectChildIndex(const QModelIndex& index, bool selectItem
QModelIndex translated = sidebarModel->translateChildIndex(index);
if (selectItem) {
- auto pModel = new QItemSelectionModel(sidebarModel);
+ auto* pModel = new QItemSelectionModel(sidebarModel);
pModel->select(translated, QItemSelectionModel::Select);
if (selectionModel()) {
selectionModel()->deleteLater();