Use today as default date in wxDatePickerCtrl under OS X too.
This makes the behaviour consistent with the documentation and other ports. Closes #29.
This commit is contained in:
committed by
Vadim Zeitlin
parent
94f8d80b6a
commit
2e5df8746a
@@ -174,6 +174,10 @@ wxDateTimeWidgetImpl::CreateDateTimePicker(wxDateTimePickerCtrl* wxpeer,
|
||||
{
|
||||
[v setDateValue: NSDateFromWX(dt)];
|
||||
}
|
||||
else
|
||||
{
|
||||
[v setDateValue: [NSDate date]];
|
||||
}
|
||||
|
||||
wxDateTimeWidgetImpl* c = new wxDateTimeWidgetCocoaImpl(wxpeer, v);
|
||||
#if !wxOSX_USE_NATIVE_FLIPPED
|
||||
|
Reference in New Issue
Block a user