From e2ba754f917a7f7aa28ef430f3150a853f10db32 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 16 Apr 2013 23:58:25 +0200 Subject: [PATCH] Default icon. --- src/http/Service.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http/Service.cpp b/src/http/Service.cpp index 3afedee9d..7fd61aee3 100644 --- a/src/http/Service.cpp +++ b/src/http/Service.cpp @@ -43,6 +43,7 @@ static const Uuid KEEPASSHTTP_UUID = Uuid(QByteArray::fromRawData(reinterpret_ca static const char KEEPASSHTTP_NAME[] = "KeePassHttp Settings"; static const char ASSOCIATE_KEY_PREFIX[] = "AES Key: "; static const char KEEPASSHTTP_GROUP_NAME[] = "KeePassHttp Passwords"; //Group where new KeePassHttp password are stored +static int KEEPASSHTTP_DEFAULT_ICON = 1; //private const int DEFAULT_NOTIFICATION_TIME = 5000; Entry* Service::getConfigEntry(bool create) @@ -314,7 +315,7 @@ Group * Service::findCreateAddEntryGroup() group = new Group(); group->setUuid(Uuid::random()); group->setName(groupName); - group->setIcon(Group::DefaultIconNumber); //TODO: WorldIconNumber + group->setIcon(KEEPASSHTTP_DEFAULT_ICON); group->setParent(rootGroup); return group; } @@ -328,7 +329,7 @@ void Service::addEntry(const QString &id, const QString &login, const QString &p entry->setUuid(Uuid::random()); entry->setTitle(QUrl(url).host()); entry->setUrl(url); - entry->setIcon(Entry::DefaultIconNumber); //TODO: WorldIconNumber + entry->setIcon(KEEPASSHTTP_DEFAULT_ICON); entry->setUsername(login); entry->setPassword(password); entry->setGroup(group);