The argument should not used before it passes the assertion.

wilder-portage
Jekyll Wu 15 years ago
parent 0c5a853e92
commit 4b7ce422a5
  1. 4
      src/EditProfileDialog.cpp

@ -161,10 +161,10 @@ void EditProfileDialog::updateCaption(const Profile::Ptr profile)
}
void EditProfileDialog::setProfile(Profile::Ptr profile)
{
_profile = profile;
Q_ASSERT( profile );
_profile = profile;
// update caption
updateCaption(profile);

Loading…
Cancel
Save