Commit bbfadc71 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Don't set color for new collections

Color should be NULL for new EteSync collections if color has not been set explicitly by user.
parent 51244877
Pipeline #38308 failed with stage
in 60 minutes and 6 seconds
......@@ -572,7 +572,6 @@ void EteSyncResource::collectionAdded(const Akonadi::Collection &collection, con
const QString type = getEtebaseTypeForCollection(collection);
EtebaseItemMetadataPtr collectionMetaData(etebase_item_metadata_new());
etebase_item_metadata_set_name(collectionMetaData.get(), collection.displayName());
etebase_item_metadata_set_color(collectionMetaData.get(), ETESYNC_DEFAULT_COLLECTION_COLOR);
etebase_item_metadata_set_mtime(collectionMetaData.get(), &modificationTimeSinceEpoch);
qCDebug(ETESYNC_LOG) << "Created metadata";
......
......@@ -78,7 +78,6 @@ void LoginJob::createDefaultCollection(const QString &collectionType, const QStr
int64_t modificationTimeSinceEpoch = QDateTime::currentMSecsSinceEpoch();
EtebaseItemMetadataPtr collectionMetaData(etebase_item_metadata_new());
etebase_item_metadata_set_name(collectionMetaData.get(), collectionName);
etebase_item_metadata_set_color(collectionMetaData.get(), ETESYNC_DEFAULT_COLLECTION_COLOR);
etebase_item_metadata_set_mtime(collectionMetaData.get(), &modificationTimeSinceEpoch);
qCDebug(ETESYNC_LOG) << "Created metadata";
......
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