Removed all dead code from MainWindow.

Includes removing an if-statement at MainWindow.cc:1644 that should've been dead but was erroneously applied to the following statement. Dead code = bad, if-statements without braces = bad.