From 8d0bfbda8da72f68b9c793e7d262b11b98c9076f Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Mon, 9 Aug 2021 15:48:53 +0200 Subject: [PATCH] FavoriteProxyTest: adapt test for dropping option on favourites ace9cfb46008e4fcd2b973111fbc508110bbd9c9 enabled dropping of emails on favourites, but missed to adapt the test. --- autotests/favoritestest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/favoritestest.cpp b/autotests/favoritestest.cpp index 8b8d018..1a43a2f 100644 --- a/autotests/favoritestest.cpp +++ b/autotests/favoritestest.cpp @@ -111,7 +111,8 @@ void FavoriteProxyTest::testReordering() const QModelIndex firstRowIndex = orderProxy->index(0, 0); QVERIFY(firstRowIndex.isValid()); QCOMPARE(firstRowIndex.data().toString(), QStringLiteral("res2")); - QVERIFY((orderProxy->flags(firstRowIndex) & Qt::ItemIsDropEnabled) == 0); + // we can drop emails + QVERIFY((orderProxy->flags(firstRowIndex) & Qt::ItemIsDropEnabled) != 0); } #include "favoritestest.moc"