Changeset 9644


Ignore:
Timestamp:
12/12/09 12:25:20 (2 years ago)
Author:
Sewi
Message:

Reference shortcuts to actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Action.pm

    r9469 r9644  
    109109            warn "Found a duplicate shortcut '$shortcut' with " . $a->name . " for '$name'\n"; 
    110110            last; 
     111        } 
     112 
     113        my $shortcuts = Padre->ide->{shortcuts}; 
     114        if (defined($shortcuts->{$shortcut})) { 
     115            warn "Found a duplicate shortcut '$shortcut' with " . $shortcuts->{$shortcut}->name . " for '$name'\n"; 
     116        } else { 
     117            $shortcuts->{$shortcut} = $self; 
    111118        } 
    112119    } 
Note: See TracChangeset for help on using the changeset viewer.