mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 08:12:35 -08:00
Add tests & minor edits
This commit is contained in:
1 parent
ca30d1832d
commit
397d804cdd
3 files changed
+28
-5
No files matched your search
@@ -1137,7 +1137,7 @@ QMenu* EditEntryWidget::createPresetsMenu()
|
||||
return expirePresetsMenu;
|
||||
}
|
||||
|
||||
void EditEntryWidget::setupColorButton(bool foreground, QColor color)
|
||||
void EditEntryWidget::setupColorButton(bool foreground, const QColor& color)
|
||||
{
|
||||
QWidget* button = m_advancedUi->fgColorButton;
|
||||
QCheckBox* checkBox = m_advancedUi->fgColorCheckBox;
|
||||
@@ -1165,7 +1165,7 @@ void EditEntryWidget::pickColor()
|
||||
oldColor = QColor(m_advancedUi->bgColorButton->property("color").toString());
|
||||
}
|
||||
|
||||
QColorDialog colorDialog;
|
||||
QColorDialog colorDialog(this);
|
||||
QColor newColor = colorDialog.getColor(oldColor);
|
||||
if (newColor.isValid()) {
|
||||
setupColorButton(isForeground, newColor);
|
||||
|
||||
Reference in new issue
Block a user