From f587ec3d4b987843656f41929e1d9a812b7336de Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 16 Sep 2011 13:01:48 +0200 Subject: [PATCH] Fixing bug caused by Padre API change in 0.85 --- Changes | 1 + dist.ini | 2 +- lib/Padre/Plugin/WebGUI/Assets.pm | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 0b9462b..2ef74f6 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{ $dist->name }} {{ $NEXT }} + * Change find_id_of_editor call to editor_id to comply with new (>=0.85) Padre API ( Martin Kamerbeek ) 1.002 2011-03-27 15:21:21 America/New_York * Improve handling of unicode (arjancwidlak) diff --git a/dist.ini b/dist.ini index 5124462..f5c0d65 100644 --- a/dist.ini +++ b/dist.ini @@ -11,7 +11,7 @@ copyright_holder = Patrick Donelan skip = ^Wx::TreeCtrl$ [Prereqs] -Padre = 0.69 +Padre = 0.85 [Prereqs / RuntimeRecommends] JSON::XS = 2.24 diff --git a/lib/Padre/Plugin/WebGUI/Assets.pm b/lib/Padre/Plugin/WebGUI/Assets.pm index 7e12959..b7c6138 100644 --- a/lib/Padre/Plugin/WebGUI/Assets.pm +++ b/lib/Padre/Plugin/WebGUI/Assets.pm @@ -256,7 +256,7 @@ sub edit_asset { $doc->load_asset( $item->{assetId}, $self->url ); # Fake-save tab so that it isn't in the unsaved state - my $id = $main->find_id_of_editor($editor); + my $id = $main->editor_id($editor); my $page = $main->notebook->GetPage($id); $page->SetSavePoint;