void wallPaeper::manBtnClicked() { if(openManWin == true) { openManWin = false; manWin = new wpManager(this); manWin->setAttribute(Qt::WA_Maemo5StackedWindow); manWin->setAttribute(Qt::WA_DeleteOnClose); connect(manWin, SIGNAL(destroyed()), this, SLOT(openManWinTrue())); manWin->show(); } } void wallPaeper::openManWinTrue() { openManWin = true; }