Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2020-05-31 17:00:11 +0300
committerJonathan White <support@dmapps.us>2020-06-04 17:03:40 +0300
commit9d107926409217c53b1a3988556515faec774351 (patch)
tree2b672a9f94224271dcce2565f0143a7d40ff8867 /tests
parent2073f2ddc30f6922eda89ee3c66e80f9cb426859 (diff)
Update edit entry widget when backing entry changes
* Fixes #4060 * Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
Diffstat (limited to 'tests')
-rw-r--r--tests/gui/TestGui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp
index c2ef5e192..e59540a02 100644
--- a/tests/gui/TestGui.cpp
+++ b/tests/gui/TestGui.cpp
@@ -499,9 +499,9 @@ void TestGui::testEditEntry()
// Confirm edit was made
QCOMPARE(m_dbWidget->currentMode(), DatabaseWidget::Mode::ViewMode);
QCOMPARE(entry->title(), QString("Sample Entry_test"));
- QCOMPARE(entry->foregroundColor(), fgColor);
+ QCOMPARE(entry->foregroundColor().toUpper(), fgColor.toUpper());
QCOMPARE(entryItem.data(Qt::ForegroundRole), QVariant(fgColor));
- QCOMPARE(entry->backgroundColor(), bgColor);
+ QCOMPARE(entry->backgroundColor().toUpper(), bgColor.toUpper());
QCOMPARE(entryItem.data(Qt::BackgroundRole), QVariant(bgColor));
QCOMPARE(entry->historyItems().size(), ++editCount);