From: Ville Tiensuu Date: Mon, 31 May 2010 11:46:47 +0000 (+0300) Subject: backup before removing small profile image handling from source code X-Git-Tag: v0.5~3^2~2 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=8bad9854895f15130ccae79038566af41deaf34e;hp=21226b29300335dc171f8b4ae62d838f32b7e3ac;p=situare backup before removing small profile image handling from source code --- diff --git a/src/situareservice/situareservice.cpp b/src/situareservice/situareservice.cpp index 6c05c51..b28902c 100644 --- a/src/situareservice/situareservice.cpp +++ b/src/situareservice/situareservice.cpp @@ -383,11 +383,11 @@ void SituareService::imageReceived(const QUrl &url, const QPixmap &image) } } - if(m_user->profileImageUrl() == url) { + if (m_user->profileImageUrl() == url) { m_user->setProfileImage(AvatarImage::create(image)); } - if(m_user->profileImageUrlBig() == url) { + if (m_user->profileImageUrlBig() == url) { m_user->setProfileImageBig(AvatarImage::create(image)); } @@ -414,8 +414,9 @@ void SituareService::addProfileImages() emit fetchImage(QUrl(SILHOUETTE_URL)); } - if(!m_user->profileImageUrl().isEmpty() && m_user->profileImageUrl().isValid()) - emit fetchImage(m_user->profileImageUrl()); + // dont download small profile image because not needed. +// if(!m_user->profileImageUrl().isEmpty() && m_user->profileImageUrl().isValid()) +// emit fetchImage(m_user->profileImageUrl()); if(!m_user->profileImageUrlBig().isEmpty() && m_user->profileImageUrlBig().isValid()) { emit fetchImage(m_user->profileImageUrlBig());