Update mainwindow.cpp

adding selection changed into browser