Author: stippi Date: Thu Apr 22 22:19:41 2010 New Revision: 454 URL: http://mmlr.dyndns.org/changeset/454 Log: Don't set the text if it's the same, allows to keep selection. Modified: webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp Modified: webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp Thu Apr 22 21:22:06 2010 (r453) +++ webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp Thu Apr 22 22:19:41 2010 (r454) @@ -603,7 +603,8 @@ void URLInputGroup::SetText(const char* text) { - fTextView->SetText(text); + if (!text || !Text() || strcmp(Text(), text) != 0) + fTextView->SetText(text); }