Finally really fixed the save issues (I think)
	modified:   mainwindow.cpp
	modified:   mainwindow.h