mainwindow: Do not use no existing variables