Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ddec22f7 authored by Michael Reeves's avatar Michael Reeves

Use Selection::reset when removing selection makes state more pridictable

parent c9997b22
......@@ -341,7 +341,6 @@ public:
inline int getFirstPos() { return firstPos; };
inline int getLastPos() { return lastPos; };
inline void invalidate() { firstLine = -1; };
inline bool isValidFirstLine() { return firstLine != -1; }
inline void clearOldSelection() { oldLastLine = -1, oldFirstLine = -1; };
......
......@@ -441,7 +441,7 @@ void DiffTextWindow::mousePressEvent(QMouseEvent* e)
if((!d->m_pOptions->m_bRightToLeftLanguage && e->x() < xOffset) || (d->m_pOptions->m_bRightToLeftLanguage && e->x() > width() - xOffset))
{
emit setFastSelectorLine(convertLineToDiff3LineIdx(line));
d->m_selection.invalidate(); // Disable current d->m_selection
d->m_selection.reset(); // Disable current d->m_selection
}
else
{ // Selection
......
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