Update mainwindow.cpp

add htons