Quick fix to mainwindow.cpp, i used the wrong file dialog