diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-01 04:08:31 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-01 04:08:31 -0500 |
commit | d18e4e4b076666592cd806c65c1a23188115066e (patch) | |
tree | 1e0fd39be08f69080f7e61453d75f38afacd1f91 /user/kpeople/dont-crash-test.patch | |
parent | f91e090e29de7a03745c50cc5766dd0e5c2311e2 (diff) | |
download | packages-d18e4e4b076666592cd806c65c1a23188115066e.tar.gz packages-d18e4e4b076666592cd806c65c1a23188115066e.tar.bz2 packages-d18e4e4b076666592cd806c65c1a23188115066e.tar.xz packages-d18e4e4b076666592cd806c65c1a23188115066e.zip |
user/kpeople: new package
Diffstat (limited to 'user/kpeople/dont-crash-test.patch')
-rw-r--r-- | user/kpeople/dont-crash-test.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/user/kpeople/dont-crash-test.patch b/user/kpeople/dont-crash-test.patch new file mode 100644 index 000000000..e133618be --- /dev/null +++ b/user/kpeople/dont-crash-test.patch @@ -0,0 +1,12 @@ +diff --git a/autotests/personsmodeltest.cpp b/autotests/personsmodeltest.cpp +index 3e5b9a5..ee2123b 100644 +--- a/autotests/personsmodeltest.cpp ++++ b/autotests/personsmodeltest.cpp +@@ -119,6 +119,7 @@ void PersonsModelTest::gettersTests() + { + // Find the index for "kpeople://1" using the QAIModel method + QModelIndexList indexList = m_model->match(m_model->index(0,0,QModelIndex()), KPeople::PersonsModel::PersonUriRole, QVariant(QStringLiteral("kpeople://1")), 1); ++ QCOMPARE(indexList.isEmpty(), false); + QModelIndex personIndex = indexList.first(); + + // Now get the index using our method |