Fix handling of "Cancel" button in wxSearchCtrl under OS X.

Pressing it results in a control action with an empty, but not null, string.
Recognize it correctly.

See #16869.
This commit is contained in:
John Roberts
2015-07-18 01:19:18 +02:00
committed by Vadim Zeitlin
parent 31e1387541
commit 7065e26fb3

View File

@@ -155,7 +155,7 @@ public :
if ( wxpeer )
{
NSString *searchString = [m_searchField stringValue];
if ( searchString == nil )
if ( searchString == nil || !searchString.length )
{
wxpeer->HandleSearchFieldCancelHit();
}