Fix for disappearing refactoring dialog.
Merge pull request #190 from Jonnymcc/develop

Fix for disappearing refactoring dialog.