controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp
--- a/controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp Mon May 03 12:32:06 2010 +0300
+++ b/controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp Fri May 14 15:53:07 2010 +0300
@@ -26,9 +26,7 @@
QGraphicsItem *parent):HbDialog(parent),
mProfileModel(profileModel),
mProfileList(0),
- mProfileActivator(profileActivator),
- mConfirmProfile(0),
- mCancelProfile(0)
+ mProfileActivator(profileActivator)
{
mProfileIds << EProfileWrapperGeneralId
<< EProfileWrapperMeetingId;
@@ -47,8 +45,8 @@
connect(mCancelProfile, SIGNAL(triggered(bool)), this, SLOT(cancelProfileSelection()));
- this->setPrimaryAction(mConfirmProfile);
- this->setSecondaryAction(mCancelProfile);
+ this->addAction(mConfirmProfile);
+ this->addAction(mCancelProfile);
this->setContentWidget(mProfileList);
this->setModal(true);
@@ -58,8 +56,7 @@
CpProfileActivatorDialog::~CpProfileActivatorDialog()
{
- delete mConfirmProfile;
- delete mCancelProfile;
+
}
void CpProfileActivatorDialog::confirmProfileSelection()
{