Changeset 9765
- Timestamp:
- 12/17/09 23:18:10 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Task/SyntaxChecker.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Task/SyntaxChecker.pm
r9729 r9765 89 89 } 90 90 return () if not defined $editor; 91 $editor = Scalar::Util::refaddr( $editor ); 91 92 $self->{main_thread_only}->{on_finish} = $on_finish if $on_finish; 92 93 $self->{main_thread_only}->{editor} = $editor; … … 127 128 my $main = Padre->ide->wx->main; 128 129 my $syntax = $main->syntax; 129 my $editor = $self->{main_thread_only}->{editor}; 130 131 my $editor = Padre::Current->editor; 132 my $addr = delete $self->{main_thread_only}->{editor}; 133 if ( not $addr or not $editor or $addr ne Scalar::Util::refaddr($editor) ) { 134 # editor reference is not valid any more 135 return 1; 136 } 130 137 131 138 # Clear out the existing stuff 132 139 $syntax->clear; 133 134 require Padre::Wx;135 140 136 141 # If there are no errors, clear the synax checker pane and return.
Note: See TracChangeset
for help on using the changeset viewer.
