diff options
author | Jonathan White <support@dmapps.us> | 2020-05-31 17:00:11 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-06-04 17:03:40 +0300 |
commit | 9d107926409217c53b1a3988556515faec774351 (patch) | |
tree | 2b672a9f94224271dcce2565f0143a7d40ff8867 /tests | |
parent | 2073f2ddc30f6922eda89ee3c66e80f9cb426859 (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.cpp | 4 |
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); |