Fixed minor bug in using Ctrl+S to save in MainWindow.