Make the dialog work with the Map Editor as well

By request of @nicolas-f