fixed compiler warning in mainwindow.cpp & h