Update mainwindow.cpp

Renamed method. See other request.