Update to main window.cpp and gitignore