- Code cleanings in mainwindow.cpp code.