From: Václav Slavík Date: Sun, 17 Jun 2007 09:29:41 +0000 (+0000) Subject: don't make read-only text controls editable when enabled X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/81c882b613b5d99ddb1e5ab69fcd7ebccc287025?ds=sidebyside don't make read-only text controls editable when enabled git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 03d093667c..295f3bfbec 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1293,14 +1293,7 @@ bool wxTextCtrl::Enable( bool enable ) return false; } - if ( IsMultiLine() ) - { - SetEditable( enable ); - } - else - { - gtk_widget_set_sensitive( m_text, enable ); - } + gtk_widget_set_sensitive( m_text, enable ); return true; }