View Single Post
Old 04-13-2021, 06:32 PM   #525
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
Yes. For example:
  1. Select a book by single-clicking on a cell such as title. The line turns blue. No editor opens. No action runs.
  2. Single-click on a cell on that line, for example authors. The editor opens.
  3. Double-click on a cell, for example authors. The action runs.
Inverting the order of the last two steps doesn't change anything.
When I reach number 3, the action runs and the cell opens for editing.

After more testing, it seems to be chain dependent. When I tested with some chains that contain only one action, it behaved normally. The chain I was initially testing with (attached below) has two conditional actions and it always triggers the abnormal behavior.

This might suggest that the problem is somewhere in my code? Not really sure. Will investigate more and see if I get to the bottom of this.

Edit: After testing some more, I think I found the culprit. The chain loop makes this call between actions:

Code:
QApplication.processEvents()
If I comment this out, the problem does not happen anymore. I don't know calling processEvents() leads to this?
Attached Files
File Type: zip on_double_click.zip (594 Bytes, 834 views)

Last edited by capink; 04-13-2021 at 06:44 PM.
capink is offline   Reply With Quote