https://bugs.kde.org/show_bug.cgi?id=313848

--- Comment #6 from allan <agande...@gmail.com> ---
I would appreciate comments as to whether this patch is the right approach.

The initial fix was diagnostic, as it was getting late.

I needed to go further back in the code.  What I found was that after an edit,
a click in the body of the transaction, outside of the editable fields,
resulted in a call to 
Register::selectItem(int row, int col), whereas clicking in the edit fields did
not.  The click was reflected in m_mouseButton - QFlags(0x1), and it was that
which later was causing the problem.

So, I needed to clear m_mouseButton, in this use case :- 
Register::selectItem(int row, int col), line 1420

     // don't support selecting when the item has an editor
     // or the item itself is not selectable
-    if (item->hasEditorOpen() || !item->isSelectable())
+    if (item->hasEditorOpen() || !item->isSelectable()) {
+      m_mouseButton = Qt::NoButton;
       return;
-
+    }

This fixes the problem, and no side-effects so far.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel

Reply via email to