nicolasfella added a comment.
I think the "proper" thing to do would be to check whether the resultCode is Activity.RESULT_OK or Activity.RESULT_CANCELED REPOSITORY R223 Okular REVISION DETAIL https://phabricator.kde.org/D18397 To: vkrause Cc: nicolasfella, okular-devel, tfella, ngraham, darcyshen, aacid