Deleting files with search dialog open may delete wrong file
Posted: 11.01.2012, 23:00
I can not reliably reproduce this but sometimes there seems to be an issue with what item selection is used for performing an operation when the search dialog is open in the background: either the selection made in the search results or the selection made in the active tab.
Scenario that made this happen a couple of times while trying to reproduce:
- Start FC
- open search dialog (alt-f7)
- perform a search that produces some results
- ctrl-click to select a couple of items in the search results
- focus main window
- select some items in the main window tab
- shift-delete the selection in the main window
Now a few things can happen, i can not reliably reproduce one or another:
1) popup appears to confirm deletion of the selection made in the main window --> this is what i expect
2) search dialog is moved to the top and a popup appears to confirm deletion of the selection still present in the search results --> counter intuitive, but at least a lot happens on the screen which alerts me something weird is going on
3) search dialog stays in background and a popup appears to confirm deletion of the selection still present in the search dialog --> UGH! this made me loose files because i didn't read the delete confirmation dialog closely...
Arguably actually losing files is my fault but this can't be the intended behavior.
I can reproduce scenario 2 by doing this a couple of times restarting FC between every few attempts to reproduce. I try to vary the mouseclicks made after switching to the main window (click titlebar to focus it / click current tab-thingy to focus it / click default selected row entry to focus it / etc), while this does not guarantee certain behavior i have the feeling this does have something to do with it.
Environment:
Win7x64
FC XE build 570 public preview
Scenario that made this happen a couple of times while trying to reproduce:
- Start FC
- open search dialog (alt-f7)
- perform a search that produces some results
- ctrl-click to select a couple of items in the search results
- focus main window
- select some items in the main window tab
- shift-delete the selection in the main window
Now a few things can happen, i can not reliably reproduce one or another:
1) popup appears to confirm deletion of the selection made in the main window --> this is what i expect
2) search dialog is moved to the top and a popup appears to confirm deletion of the selection still present in the search results --> counter intuitive, but at least a lot happens on the screen which alerts me something weird is going on
3) search dialog stays in background and a popup appears to confirm deletion of the selection still present in the search dialog --> UGH! this made me loose files because i didn't read the delete confirmation dialog closely...
Arguably actually losing files is my fault but this can't be the intended behavior.
I can reproduce scenario 2 by doing this a couple of times restarting FC between every few attempts to reproduce. I try to vary the mouseclicks made after switching to the main window (click titlebar to focus it / click current tab-thingy to focus it / click default selected row entry to focus it / etc), while this does not guarantee certain behavior i have the feeling this does have something to do with it.
Environment:
Win7x64
FC XE build 570 public preview