Changeset 402:7a70b0942920 in SMSSender


Ignore:
Timestamp:
May 3, 2014 12:53:19 PM (4 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
default
Message:
  • Prints error when the import of a contact fails.
  • Fixes bug where the base and not the frontend specific google contact importer was used.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/business/contactimporter/googlecontactimporter_base.cpp

    r390 r402  
    2424#include "common/exceptions/eexception.h"
    2525#include "common/network/snetworkreply.h"
     26#include "frontend/business/contactimporter/googlecontactimporter.h"
    2627
    2728BaseGoogleContactImporter::BaseGoogleContactImporter(const BaseGoogleContactImporter::AuthData &authData)
     
    101102                contacts->insert(contact.take());
    102103            }
     104        } catch (EException &e) {
     105            // don't fail to import all contacts because of one...
     106            qWarning() << "Failed to import contact: " << e.chainedWhat();
    103107        } catch (...) {
    104             // don't fail to import all contacts because of one...
     108            qWarning() << "Failed to import contact: Unknown reason.";
    105109        }
    106110    }
     
    167171void BaseGoogleContactImporter::Builder::createImporters(
    168172        QSet<IContactImporter *> *importers) {
    169     importers->insert(new BaseGoogleContactImporter(m_authData));
     173    importers->insert(new GoogleContactImporter(m_authData));
    170174}
Note: See TracChangeset for help on using the changeset viewer.