Bug #53860 Deleting a snippet from a list always deletes the first snippet
Submitted: 20 May 2010 16:14 Modified: 26 May 2010 11:13
Reporter: Tomislav Kopajtic Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.21 OS:Linux (Ubuntu 9.10 32bit)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: delete, editor, snippet, SQL

[20 May 2010 16:14] Tomislav Kopajtic
Description:
Deleting a snippet from a list always deletes the first snippet from the list (the one marked by letter A) when using the command "Delete Selected Snippet from List". It does not happen when deleting a snippet by right clicking it and selecting Delete.

How to repeat:
Create a few snippets, name them 1,2,3 or A,B,C... so it's easy to see the problem. Select the one that is not first in the list. Click command "Delete Selected Snippet from List". First one will be deleted, marked one will not be.
[20 May 2010 19:00] Valeriy Kravchuk
Not repeatable on Mac OS X for me.
[21 May 2010 9:11] Susanne Ebrecht
Verified as described.

Always the last snippets will get deleted.
[21 May 2010 14:31] Alfredo Kojima
Fixed.
As a workaround, use the context menu in the snippet list.
[25 May 2010 23:16] Johannes Taxacher
fix confirmed in repository
[26 May 2010 11:13] Tony Bedford
An entry has been added to the 5.2.22 changelog:

In the SQL Editor, when deleting a snippet from the snippet list using the toolbar button, the first snippet was deleted, regardless of which snippet was selected.