if (!view->GetValueText())
return;
- char *s = wxFileSelector(
+ wxString s = wxFileSelector(
m_filenameMessage.GetData(),
wxPathOnly(property->GetValue().StringValue()),
wxFileNameFromPath(property->GetValue().StringValue()),
m_filenameWildCard.GetData(),
0,
parentWindow);
- if (s)
+ if (s != "")
{
- property->GetValue() = wxString(s);
+ property->GetValue() = s;
view->DisplayProperty(property);
view->UpdatePropertyDisplayInList(property);
view->OnPropertyChanged(property);