Don't set the text if it's the same, allows to keep selection.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@454 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-04-22 22:19:41 +00:00 committed by Alexandre Deckner
parent 88b25a7da9
commit f7530134b1
1 changed files with 2 additions and 1 deletions

View File

@ -603,7 +603,8 @@ URLInputGroup::TextView() const
void
URLInputGroup::SetText(const char* text)
{
fTextView->SetText(text);
if (!text || !Text() || strcmp(Text(), text) != 0)
fTextView->SetText(text);
}