1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fixed a bug in TextPropertyComponent that broke the Introjucer's GUI editor.

This commit is contained in:
Timur Doumler 2015-08-12 10:13:44 +01:00
parent c922162b03
commit 79e3a141d2
2 changed files with 10 additions and 1 deletions

View file

@ -138,6 +138,11 @@ void TextPropertyComponent::refresh()
void TextPropertyComponent::textWasEdited()
{
const String newText (textEditor->getText());
if (getText() != newText)
setText (newText);
callListeners();
}

View file

@ -64,7 +64,11 @@ public:
~TextPropertyComponent();
//==============================================================================
/** Set the value of the text shown in the text editor to the specified string. */
/** Called when the user edits the text.
Your subclass must use this callback to change the value of whatever item
this property component represents.
*/
virtual void setText (const String& newText);
/** Returns the text that should be shown in the text editor. */