show warning on save error.
show warning on error opening file.
use a plain QMapIterator for saving.