Commit 4b7ce422 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

The argument should not used before it passes the assertion.

parent 0c5a853e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment