commit() call in MainWindow before run save action