Closes #263, #219, #190 and potentially #229
@ -180,7 +180,11 @@ GList* RecentManager::filterRecent(GList* items, bool xoj)
if (!ba::starts_with(uri, "file://")) continue;
using namespace boost::filesystem;
if (!exists(path(uri.substr(7)))) continue; //substr is for removing uri's file://
try {
} catch (boost::filesystem::filesystem_error) {
continue;
}
if (xoj && ba::ends_with(uri, ".xoj"))
{
@ -386,7 +386,7 @@ bool ExportDialog::fileTypeByExtension()
gtk_tree_model_get(GTK_TREE_MODEL(this->typesModel), &iter, COL_EXTENSION, ¤tExtension, -1);
if (extension == currentExtension)
if (currentExtension && extension == currentExtension)
gtk_tree_model_get(GTK_TREE_MODEL(this->typesModel), &iter, COL_TYPE, &this->type, -1);