Skip to content

Commit ff57286

Browse files
Ralf WisserRalf Wisser
Ralf Wisser
authored and
Ralf Wisser
committed
open popup menu immediately (on mousePressed)
1 parent c437b71 commit ff57286

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/gui/net/sf/jailer/ui/databrowser/BrowserContentPane.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -8546,7 +8546,7 @@ protected void initOnSelectionButton() {
85468546

85478547
List<Association> assocs = new ArrayList<Association>();
85488548
for (Association a: association.source.associations) {
8549-
if (a.destination == association.destination && a != association) {
8549+
if (a.destination == association.destination) {
85508550
assocs.add(a);
85518551
}
85528552
}
@@ -8563,6 +8563,7 @@ protected void onClick(MouseEvent e) {
85638563
uc = uc.substring(0, MAX_COND_LENGTH) + "...";
85648564
}
85658565
JMenuItem item = new JMenuItem(uc);
8566+
item.setEnabled(a != association);
85668567
item.setToolTipText(assocToolTip(a.getUnrestrictedJoinCondition(), a));
85678568
item.setIcon(UIUtil.scaleIcon(this, blueDotIcon));
85688569
if (a.isInsertDestinationBeforeSource()) {

0 commit comments

Comments
 (0)