Fix crash with Oxygen theme

QSharedPointer for main window crashes with Oxygen GUI style (can be
disabled from qtconfig for Qt 4).