issue #19978 similar crash fix, check to see if there is a parentWidget before saving position
Merge pull request #158 from gpazo/19978

issue #19978 similar crash fix, check to see if there is a parentWidget ...