aboutsummaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-06 13:56:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-06 13:56:46 -0700
commit4912951e97b4040941944e1df70a91366a6a5559 (patch)
tree12efaf55cf82b90729e5e5b7485993f1082df516 /equipment.c
parent8cdf1ab59fed02d4740c13f0906dbdbc85043a53 (diff)
downloadsubsurface-4912951e97b4040941944e1df70a91366a6a5559.tar.gz
Remove weightsystem entry with no description
This existed in the initial implementation to deal with an implementation problem that was long since resolved. So now it just created just an ugly empty line in the drop down menu for weightsystems. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/equipment.c b/equipment.c
index 9c8ee49a9..165b9d77c 100644
--- a/equipment.c
+++ b/equipment.c
@@ -312,7 +312,7 @@ static GtkTreeIter *add_weightsystem_type(const char *desc, int weight, GtkTreeI
gtk_list_store_set(GTK_LIST_STORE(model), found_match,
WS_WEIGHT, weight,
-1);
- } else {
+ } else if (desc && desc[0]) {
gtk_list_store_append(GTK_LIST_STORE(model), iter);
gtk_list_store_set(GTK_LIST_STORE(model), iter,
WS_DESC, desc,
@@ -748,8 +748,6 @@ static struct ws_info {
const char *name;
int grams;
} ws_info[100] = {
- /* Need an empty entry for the no weight system case */
- { "", },
{ "integrated", 0 },
{ "belt", 0 },
{ "ankle", 0 },