Fixed some save issues.
	modified:   mainwindow.cpp
	modified:   mainwindow.h