Skip to content
  • Ahmad Samir's avatar
    Don't connect more slots to EditProfileDialog::accepted() signal · 4cab54d2
    Ahmad Samir authored and Kurt Hindenburg's avatar Kurt Hindenburg committed
    This is similar to commit c413d543, EditProfileDialog's base class
    (KPageDialog) already connects OK button clicked signal to accepted() signal;
    creating another connection to accepted() in SessionController (which
    creates the EditProfileDialog object), means the code will be run twice, not
    ideal. Instead put the logic in EditProfileDialog::save() which is called by
    the EditProfileDialog::accept() slot.
    
    The same goes when ProfileSettings creates an EditProfileDialog.
    4cab54d2