D16643: Correct the accept flag of the event object on DragMove

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sun Nov 4 21:17:55 GMT 2018


bruns added a comment.


  In D16643#353672 <https://phabricator.kde.org/D16643#353672>, @trmdi wrote:
  
  > In D16643#353670 <https://phabricator.kde.org/D16643#353670>, @bruns wrote:
  >
  > > This is not covered by your summary - you have only listed cases where the drag is erroneously **not** accepted. Please update the summary.
  >
  >
  > I wrote it in the first line:
  >
  > > m_enabled could change while moving.
  
  
  You made the summary worse ...
  
  `m_enabled` may change between //consecutive// DragMove events, but not during an event.
  
  In this case, though, it does not, and is constantly true. You can verify this by attaching a debugger or by adding debug statements.
  
  The only wrong code part is the `setAccepted(false)`, which should be `setAccepted(true)` (or just `accept()`, both are equivalent).

REPOSITORY
  R296 KDeclarative

REVISION DETAIL
  https://phabricator.kde.org/D16643

To: trmdi, mart, broulik, #plasma, hein, davidedmundson
Cc: bruns, dkorth, ngraham, kde-frameworks-devel, michaelh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181104/03d4c242/attachment.html>


More information about the Kde-frameworks-devel mailing list