Changing current table by right-click, the any action in the table-popup

Allineer's profile image Allineer posted 12 years ago in HeidiSQL portable Permalink
1. select any table in the tree twice.
2. select any other table by right-click - you should see context menu.
3. as example, select 'Empty table(s)'
4. I see message-box with 'No table(s) selected'.

ansgar's profile image ansgar posted 12 years ago Permalink
Confirmed. The database tab gets focused first when you click a table, and there are no tables selected. The "Empty tables" action finds selected tables from the currently focused control (tree or database tab). Which is error-prone according to what was actually clicked. Will check if I can find the clicked menu instead of using the focused control.
Code modification/commit abf558c from ansgar.becker, 12 years ago, revision 7.0.0.4367
Move code from several action events to new functions GetFocusedObjects and DBTreeClicked. Detect here whether tree or database tab was the one where user clicked the context menu, instead of just checking which of both is focused. See http://www.heidisql.com/forum.php?t=12351
ansgar's profile image ansgar posted 12 years ago Permalink
r4367 should fix that.
Allineer's profile image Allineer posted 12 years ago Permalink
r4370. it's working. Thanks, anse!

Please login to leave a reply, or register at first.