summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-31 16:51:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-31 16:51:04 -0700
commitee5c31d2921c0b8970303a1230586391dd06df4a (patch)
tree401ae3696291ae68e3a91baeb66a790ff548f4fc /windows.c
parentab8af0bdeb09f35f0d40b455601995f833811b12 (diff)
downloadsubsurface-ee5c31d2921c0b8970303a1230586391dd06df4a.tar.gz
Show drive name after the drive letter on Windows
In the device selector when downloading from a divecomputer add the drive name that we have been looking for (so far that's only "UEMISSDA") to the drive letter - this should make it easier for people to figure out why there is a drive letter offered as an option. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/windows.c b/windows.c
index 1189fae5a..372e03b14 100644
--- a/windows.c
+++ b/windows.c
@@ -163,8 +163,10 @@ int subsurface_fill_device_list(GtkListStore *store)
if (GetVolumeInformationA(p, bufval, bufdef, NULL, NULL, NULL, NULL, 0)) {
for (i = 0; dlabels[i] != NULL; i++)
if (!strcmp(bufval, dlabels[i])) {
+ char name[80];
+ snprintf(name, sizeof(name), "%s (%s)", p, dlabels[i]);
gtk_list_store_append(store, &iter);
- gtk_list_store_set(store, &iter, 0, p, -1);
+ gtk_list_store_set(store, &iter, 0, name, -1);
if (is_default_dive_computer_device(p))
index = nentries;
nentries++;