mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 17:07:32 -04:00
Merge branch 'release/2.6.1' into develop
This commit is contained in:
commit
88a0a8d35a
2 changed files with 10 additions and 1 deletions
|
@ -153,6 +153,15 @@ QIcon Resources::icon(const QString& name, bool recolor, const QColor& overrideC
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resetting the application theme name before calling QIcon::fromTheme() is required for hacky
|
||||||
|
// QPA platform themes such as qt5ct, which randomly mess with the configured icon theme.
|
||||||
|
// If we do not reset the theme name here, it will become empty at some point, causing
|
||||||
|
// Qt to look for icons at the user-level and global default locations.
|
||||||
|
//
|
||||||
|
// See issue #4963: https://github.com/keepassxreboot/keepassxc/issues/4963
|
||||||
|
// and qt5ct issue #80: https://sourceforge.net/p/qt5ct/tickets/80/
|
||||||
|
QIcon::setThemeName("application");
|
||||||
|
|
||||||
icon = QIcon::fromTheme(name);
|
icon = QIcon::fromTheme(name);
|
||||||
if (getMainWindow() && recolor) {
|
if (getMainWindow() && recolor) {
|
||||||
QImage img = icon.pixmap(128, 128).toImage().convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
QImage img = icon.pixmap(128, 128).toImage().convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||||
|
|
|
@ -176,7 +176,7 @@ void YubiKey::findValidKeys()
|
||||||
bool wouldBlock;
|
bool wouldBlock;
|
||||||
QList<QPair<int, QString>> ykSlots;
|
QList<QPair<int, QString>> ykSlots;
|
||||||
for (int slot = 1; slot <= 2; ++slot) {
|
for (int slot = 1; slot <= 2; ++slot) {
|
||||||
auto config = (i == 1 ? CONFIG1_VALID : CONFIG2_VALID);
|
auto config = (slot == 1 ? CONFIG1_VALID : CONFIG2_VALID);
|
||||||
if (!(ykds_touch_level(st) & config)) {
|
if (!(ykds_touch_level(st) & config)) {
|
||||||
// Slot is not configured
|
// Slot is not configured
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue