[Slim-Checkins] r11070 - /trunk/server/Slim/Buttons/Input/Text.pm
adrian at svn.slimdevices.com
adrian at svn.slimdevices.com
Mon Jan 1 05:07:04 PST 2007
Author: adrian
Date: Mon Jan 1 05:07:04 2007
New Revision: 11070
URL: http://svn.slimdevices.com?rev=11070&view=rev
Log:
Bug: N/A
Description: fix crashes with XMLBrowser
Modified:
trunk/server/Slim/Buttons/Input/Text.pm
Modified: trunk/server/Slim/Buttons/Input/Text.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Buttons/Input/Text.pm?rev=11070&r1=11069&r2=11070&view=diff
==============================================================================
--- trunk/server/Slim/Buttons/Input/Text.pm (original)
+++ trunk/server/Slim/Buttons/Input/Text.pm Mon Jan 1 05:07:04 2007
@@ -323,10 +323,10 @@
sub lines {
my $client = shift;
- my $line1 = $client->modeParam('header') || $client->string('ENTER_TEXT');
- my $arrayRef = $client->modeParam('arrayRef');
+ my $arrayRef = $client->modeParam('arrayRef') || return;
my $charsRef = $client->modeParam('charsRef');
+ my $line1 = $client->modeParam('header');
my $line2;
# assemble string, for all but last character as this needs the cursor first
@@ -438,6 +438,10 @@
push @indexArray, $charsInd->{ $char };
}
+ unless (@indexArray) {
+ push @indexArray, $charsInd->{ undef };
+ }
+
$client->modeParam('arrayRef', \@indexArray);
$client->modeParam('listIndex', $indexArray[$#indexArray] || 0);
}
More information about the checkins
mailing list