[gnome-commander] Add error dialog if a user is not allowed to delete a directory
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Add error dialog if a user is not allowed to delete a directory
- Date: Sun, 11 Apr 2021 21:06:13 +0000 (UTC)
commit 440bb859bd3196715386b1560968145cd180e3d1
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Mar 28 23:26:00 2021 +0200
Add error dialog if a user is not allowed to delete a directory
src/dialogs/gnome-cmd-delete-dialog.cc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/dialogs/gnome-cmd-delete-dialog.cc b/src/dialogs/gnome-cmd-delete-dialog.cc
index 011877bd..d61aa14a 100644
--- a/src/dialogs/gnome-cmd-delete-dialog.cc
+++ b/src/dialogs/gnome-cmd-delete-dialog.cc
@@ -1,4 +1,4 @@
-/**
+/**
* @file gnome-cmd-delete-dialog.cc
* @copyright (C) 2001-2006 Marcus Bjurman\n
* @copyright (C) 2007-2012 Piotr Eljasiak\n
@@ -294,6 +294,12 @@ static GList *remove_items_from_list_to_be_deleted(GList *files)
if (error)
{
g_message ("remove_items_from_list_to_be_deleted: g_file_measure_disk_usage failed: %s",
error->message);
+
+ gchar *msg = g_strdup_printf (_("Error while deleting: \n\n%s"), error->message);
+
+ run_simple_dialog (*main_win, FALSE, GTK_MESSAGE_ERROR, msg, _("Delete problem"), -1,
_("Abort"), NULL);
+ g_free (msg);
+
g_error_free (error);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]