Input name saved only when clicking OK (Fixes #750)