Commit f9c980c5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Make sure drag mode doesn't persist when switching to icon view.

Fixes #486
parent c5501bec
......@@ -1469,6 +1469,8 @@ void Bin::slotInitView(QAction *action)
m_itemView->setSelectionModel(m_proxyModel->selectionModel());
m_proxyModel->setDynamicSortFilter(true);
m_layout->insertWidget(1, m_itemView);
// Reset drag type to normal
m_itemModel->setDragType(PlaylistState::Disabled);
// setup some default view specific parameters
if (m_listType == BinTreeView) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment