Check if dialog hide function exists.
Merge remote-tracking branch 'upstream/master'