backup before removing small profile image handling from source code
authorVille Tiensuu <ville.tiensuu@ixonos.com>
Mon, 31 May 2010 11:46:47 +0000 (14:46 +0300)
committerVille Tiensuu <ville.tiensuu@ixonos.com>
Mon, 31 May 2010 11:46:47 +0000 (14:46 +0300)
src/situareservice/situareservice.cpp

index 6c05c51..b28902c 100644 (file)
@@ -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());