Update MainWindow.cpp

https://github.com/rhomobile/rhodes/pull/422/files
https://github.com/rhomobile/rhodes/pull/425/files