mainwindow fix (c++)

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>
unused code deleted

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>