mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8cdf1ab59f
commit
4912951e97
1 changed files with 1 additions and 3 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Reference in a new issue