-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct multiple issues with custom icons #994
Conversation
src/core/Metadata.cpp
Outdated
// Remove hash record only if this is the same uuid | ||
QByteArray hash = hashImage(m_customIcons[uuid]); | ||
if (m_customIconsHashes.contains(hash) && m_customIconsHashes[hash] == uuid) | ||
m_customIconsHashes.remove(hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@droidmonkey no braces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. And corrected.
8b17132
to
9cbdae9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems fine, works good too
src/gui/EditWidgetIcons.cpp
Outdated
if (uuid.isNull()) { | ||
uuid = Uuid::random(); | ||
// Don't add an icon larger than 128x128, but retain original size if smaller | ||
if (icon.width() > 128 || icon.height() > 128) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert brackets
9cbdae9
to
29a9275
Compare
- Corrected multiple snap issues [#934, #1011] - Corrected multiple custom icon issues [#708, #719, #994] - Corrected multiple Yubikey issues [#880] - Fixed single instance preventing load on occasion [#997] - Keep entry history when merging databases [#970] - Prevent data loss if passwords were mismatched [#1007] - Fixed crash after merge [#941] - Added configurable auto-type default delay [#703] - Unlock database dialog window comes to front [#663] - Translation and compiling fixes
Description
Provides multiple fixes to reported bugs against custom icon loading.
The way I implemented the unique icon hashing ensures that existing databases with multiple unique icons already are not impacted.
How has this been tested?
Manually with several websites.
Types of changes
Checklist:
-DWITH_ASAN=ON
. [REQUIRED]