Skip to content
Snippets Groups Projects
Commit 6e5c3cfc authored by Fabien Tessier's avatar Fabien Tessier
Browse files

Fix right click when several components are selected

parent d7f89cc2
No related branches found
No related tags found
1 merge request!12Fix right click when several components are selected
......@@ -100,7 +100,9 @@ public class TDiagramMouseManager extends MouseAdapter {//implements MouseListen
//System.out.println("Titi");
if (e.getButton() == MouseEvent.BUTTON3) {
//System.out.println("toto");
setSelection(e.getX(), e.getY());
if (tdp.mode != TDiagramPanel.SELECTED_COMPONENTS) {
setSelection(e.getX(), e.getY());
}
tdp.openPopupMenu(e.getX(), e.getY());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment