From 785103493c6eb66429d55d06e0c30cfa185a4778 Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Wed, 17 Jul 2019 08:22:47 +0100 Subject: [PATCH] Use setLabel when creating a wxStaticText under wxQT --- src/qt/stattext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/stattext.cpp b/src/qt/stattext.cpp index 369d15f7e2..3d3be67e96 100644 --- a/src/qt/stattext.cpp +++ b/src/qt/stattext.cpp @@ -47,7 +47,7 @@ bool wxStaticText::Create(wxWindow *parent, const wxString &name) { m_qtLabel = new wxQtStaticText( parent, this ); - m_qtLabel->setText( wxQtConvertString( label ) ); + SetLabel(label); // Set the buddy to itself to get the mnemonic key but ensure that we don't have // any unwanted side effects, so disable the interaction: