[pim/pimcommon] src/pimcommonakonadi/folderdialog: compare with checkedState
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 54ef622011adcb65657107ee22d3fcd1d1d3e3ed by Laurent Montel.
Committed on 28/07/2026 at 20:49.
Pushed by mlaurent into branch 'master'.
compare with checkedState
M +1 -1 src/pimcommonakonadi/folderdialog/selectmulticollectionwidget.cpp
https://invent.kde.org/pim/pimcommon/-/commit/54ef622011adcb65657107ee22d3fcd1d1d3e3ed
diff --git a/src/pimcommonakonadi/folderdialog/selectmulticollectionwidget.cpp b/src/pimcommonakonadi/folderdialog/selectmulticollectionwidget.cpp
index fa05c955..e42efbc4 100644
--- a/src/pimcommonakonadi/folderdialog/selectmulticollectionwidget.cpp
+++ b/src/pimcommonakonadi/folderdialog/selectmulticollectionwidget.cpp
@@ -81,7 +81,7 @@ QList<Akonadi::Collection> SelectMultiCollectionWidget::selectedCollection(const
const auto col = mCheckedCollectionWidget->checkableProxy()->data(child, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
- if (mCheckedCollectionWidget->checkableProxy()->data(child, Qt::CheckStateRole).toInt()) {
+ if (mCheckedCollectionWidget->checkableProxy()->data(child, Qt::CheckStateRole).toInt() == Qt::Checked) {
lst << col;
}
lst << selectedCollection(child);