wxTextCtrl::LoadFile no longer sends a text event, to correct problems with spurious modification of documents.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -745,7 +745,7 @@ bool wxTextCtrlBase::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)
|
|||||||
wxString text;
|
wxString text;
|
||||||
if ( file.ReadAll(&text) )
|
if ( file.ReadAll(&text) )
|
||||||
{
|
{
|
||||||
SetValue(text);
|
ChangeValue(text);
|
||||||
|
|
||||||
DiscardEdits();
|
DiscardEdits();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user