diff options
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 1 | ||||
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 2646b71ed..66955f6b9 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -530,7 +530,6 @@ int PlayListModel::bottommostInSelection(int row) const SimpleSelection& PlayListModel::getSelection(int row) { m_selection.m_top = topmostInSelection(row); - m_selection.m_anchor = row; m_selection.m_bottom = bottommostInSelection(row); m_selection.m_selected_indexes = selectedIndexes(); return m_selection; diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 769b55dc8..149cc3e49 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -55,14 +55,14 @@ struct SimpleSelection */ inline bool isValid()const { - return (m_bottom != -1) && (m_anchor != -1) && (m_top != -1); + return (m_bottom != -1) && (m_top != -1); } /*! * Prints object state. */ inline void dump()const { - qWarning("top: %d\tbotom: %d\tanchor: %d", m_top, m_bottom, m_anchor); + qWarning("top: %d\tbotom: %d", m_top, m_bottom); } /*! * Returns number of selected items. @@ -73,7 +73,6 @@ struct SimpleSelection } int m_bottom; /*!< Bottom of the selection */ int m_top; /*!< Top of the selection */ - int m_anchor; /*!< Main index of the selection */ QList<int> m_selected_indexes; /*!< Selected items numbers */ }; /*! @brief The PlayListModel class provides a data model for the playlist. |
