-fix crash when select a texture file using the new file dialog in block attribute.
Authored by: fredfewo 2010-04-02
Parent: [r318]
Child: [r320]