From 9d107926409217c53b1a3988556515faec774351 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 31 May 2020 10:00:11 -0400 Subject: 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. --- tests/gui/TestGui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3