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
2012-07-03 15:43:40 +02:00
committed by Alexandre Deckner
parent 88b25a7da9
commit f7530134b1
+2 -1
View File
@@ -603,7 +603,8 @@ URLInputGroup::TextView() const
void void
URLInputGroup::SetText(const char* text) URLInputGroup::SetText(const char* text)
{ {
fTextView->SetText(text); if (!text || !Text() || strcmp(Text(), text) != 0)
fTextView->SetText(text);
} }