Update mainwindow.cpp

Done