mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-25 02:47:01 +00:00
Added warning when temporary directory cannot be made on export
This commit is contained in:
parent
83c14cbe88
commit
4d6a67b23b
|
@ -315,7 +315,12 @@ export_drag_files(GitgRevisionTreeView *tree_view)
|
|||
g_free(tree_view->priv->drag_dir);
|
||||
gchar const *tmp = g_get_tmp_dir();
|
||||
tree_view->priv->drag_dir = g_build_filename(tmp, "gitg-export-XXXXXX", NULL);
|
||||
mkdtemp(tree_view->priv->drag_dir);
|
||||
|
||||
if (!mkdtemp(tree_view->priv->drag_dir))
|
||||
{
|
||||
g_warning("Could not create temporary directory for export");
|
||||
return;
|
||||
}
|
||||
|
||||
// Do the export
|
||||
gitg_utils_export_files(tree_view->priv->repository, tree_view->priv->revision, tree_view->priv->drag_dir, tree_view->priv->drag_files);
|
||||
|
|
Loading…
Reference in a new issue