From f7530134b1b87dc483f6d62309433ce4e22188fe Mon Sep 17 00:00:00 2001 From: stippi Date: Thu, 22 Apr 2010 22:19:41 +0000 Subject: [PATCH] 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 --- src/apps/webpositive/URLInputGroup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/webpositive/URLInputGroup.cpp b/src/apps/webpositive/URLInputGroup.cpp index c1f9c999b9..6fb51e498c 100644 --- a/src/apps/webpositive/URLInputGroup.cpp +++ b/src/apps/webpositive/URLInputGroup.cpp @@ -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); }