diff --git a/src/filter/dialog/filteractionmissingargumentdialog.cpp b/src/filter/dialog/filteractionmissingargumentdialog.cpp index 722f4b0..101d542 100644 --- a/src/filter/dialog/filteractionmissingargumentdialog.cpp +++ b/src/filter/dialog/filteractionmissingargumentdialog.cpp @@ -178,15 +178,15 @@ Akonadi::Collection::List FilterActionMissingCollectionDialog::potentialCorrectF return lst; } - const int lastSlash = realPath.lastIndexOf(QLatin1Char('/')); - QString lastElement; - if (lastSlash == -1) { - lastElement = realPath; - } else { - lastElement = realPath.right(realPath.length() - lastSlash - 1); - } - if (KernelIf->collectionModel()) { + const int lastSlash = realPath.lastIndexOf(QLatin1Char('/')); + QString lastElement; + if (lastSlash == -1) { + lastElement = realPath; + } else { + lastElement = realPath.right(realPath.length() - lastSlash - 1); + } + FilterActionMissingCollectionDialog::getPotentialFolders( KernelIf->collectionModel(), QModelIndex(), lastElement, lst);