phonebookui/pbkcommonui/src/cntdetaileditor.cpp
changeset 40 b46a585f6909
parent 37 fd64c38c277d
child 46 efe85016a067
equal deleted inserted replaced
37:fd64c38c277d 40:b46a585f6909
    56     connect( mSoftkey, SIGNAL(triggered()), this, SLOT(saveChanges()) );
    56     connect( mSoftkey, SIGNAL(triggered()), this, SLOT(saveChanges()) );
    57 }
    57 }
    58 
    58 
    59 CntDetailEditor::~CntDetailEditor()
    59 CntDetailEditor::~CntDetailEditor()
    60 {
    60 {
       
    61     mView->deleteLater();
    61     delete mDataForm;
    62     delete mDataForm;
    62     delete mDataFormModel;
    63     delete mDataFormModel;
    63     delete mHeader;
    64     delete mHeader;
    64     delete mLoader;
    65     delete mLoader;
    65     delete mEditorFactory;
    66     delete mEditorFactory;
   179        mArgs.insert(ESelectedGroupContact, var);
   180        mArgs.insert(ESelectedGroupContact, var);
   180     }
   181     }
   181     else
   182     else
   182     {
   183     {
   183         mArgs.insert(ESelectedContact, var);
   184         mArgs.insert(ESelectedContact, var);
       
   185         
       
   186         QContactDetail selectedDetail( mDataFormModel->detail() );
       
   187         QVariant var2;
       
   188         var2.setValue( selectedDetail );
       
   189         mArgs.insert( ESelectedDetail, var2 );
   184     }
   190     }
   185     
   191     
   186     mViewManager->back( mArgs );
   192     mViewManager->back( mArgs );
   187 }
   193 }
   188 
   194