[Listview] Fix wrong widget name.

Fixes: #1349
This commit is contained in:
Dave Davenport 2021-07-08 15:54:57 +02:00 committed by Dave Davenport
parent cf6832ea95
commit ac5fd1180b
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ static void listview_add_widget ( listview *lv, _listview_row *row, widget *wid,
box_add ( (box *) wid, WIDGET ( row->textbox ), TRUE );
}
else if ( strcasecmp ( label, "element-index" ) == 0 ) {
row->index = textbox_create ( WIDGET ( wid ), WIDGET_TYPE_TEXTBOX_TEXT, "element-text", TB_AUTOHEIGHT, NORMAL, " ", 0, 0 );
row->index = textbox_create ( WIDGET ( wid ), WIDGET_TYPE_TEXTBOX_TEXT, "element-index", TB_AUTOHEIGHT, NORMAL, " ", 0, 0 );
box_add ( (box *) wid, WIDGET ( row->index ), FALSE );
}
else {