Update mainwindow.cpp

Renamed method. See other request.
Merge pull request #6 from jcon09/patch-3

Update mainwindow.cpp