Commit 598b7197 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Fix the volume uniquification code.

2003-05-23  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-desktop-link-monitor.c (create_volume_link):
	Fix the volume uniquification code.
parent e8625063
2003-05-23 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-desktop-link-monitor.c (create_volume_link):
Fix the volume uniquification code.
2003-05-23 Alexander Larsson <alexl@redhat.com> 2003-05-23 Alexander Larsson <alexl@redhat.com>
   
* src/file-manager/fm-icon-view.c (fm_icon_view_screen_changed): * src/file-manager/fm-icon-view.c (fm_icon_view_screen_changed):
......
...@@ -158,8 +158,9 @@ create_volume_link (NautilusDesktopLinkMonitor *monitor, ...@@ -158,8 +158,9 @@ create_volume_link (NautilusDesktopLinkMonitor *monitor,
index = 1; index = 1;
unique_name = g_strdup (volume_name); unique_name = g_strdup (volume_name);
while (volume_name_exists (monitor, volume_name)) { while (volume_name_exists (monitor, unique_name)) {
g_free (unique_name); g_free (unique_name);
index++;
unique_name = g_strdup_printf ("%s (%d)", volume_name, index); unique_name = g_strdup_printf ("%s (%d)", volume_name, index);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment