Old MainWindow code inside the #if 0 branch was removed.