[gnome-commander/remove-search] Fix removal of device icon in device list, missed in d99c980
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/remove-search] Fix removal of device icon in device list, missed in d99c980
- Date: Sat, 15 Jan 2022 15:11:39 +0000 (UTC)
commit f08ace3b6a37add1998c1d9bf0ce9bab38cd7e2b
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jan 15 16:11:03 2022 +0100
Fix removal of device icon in device list, missed in d99c980
src/gnome-cmd-data.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 7e28e47e..26df7260 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2054,7 +2054,7 @@ void GnomeCmdData::load_keybindings()
inline void remove_gvolume (GVolume *gVolume)
{
- auto identifier = g_volume_get_identifier(gVolume, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE);
+ auto uuid = g_volume_get_identifier(gVolume, G_VOLUME_IDENTIFIER_KIND_UUID);
for (GList *i = gnome_cmd_con_list_get_all_dev (gnome_cmd_data.priv->con_list); i; i = i->next)
{
@@ -2063,7 +2063,7 @@ inline void remove_gvolume (GVolume *gVolume)
{
gchar *device_fn = (gchar *) gnome_cmd_con_device_get_device_fn (device);
- if ((g_strcmp0(device_fn, identifier)==0))
+ if ((g_strcmp0(device_fn, uuid)==0))
{
DEBUG('m',"Remove Volume: %s\n", device_fn);
gnome_cmd_data.priv->con_list->remove(device);
@@ -2072,7 +2072,7 @@ inline void remove_gvolume (GVolume *gVolume)
}
}
- g_free(identifier);
+ g_free(uuid);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]