Skip to main content
Topic: patch: fix of depot and schedule dialog (Read 5976 times) previous topic - next topic

patch: fix of depot and schedule dialog

.. this patch fixes the following bug(s) that can be produced in the following way
-- open depot dialog or vehicle - schedule dialog
-- open line management and delete a line
-- in the yet open dialogs (depot / schedule) it was possible to select or rename the deleted line, which leads to unexpected behaviour (ie crash)

The patch
-- contains a container cl**** that stores line-names (it is possible to select or edit names of deleted lines, but this cl**** will recognize this)
-- unifies the line selection components in the depot and schedule dialogs

Edit:
-- forget to svn-add new files
-- change in schedule-list to cope with the changes in gui_scrolled_list

Edit2:
-- updated to 2127
Parsley, sage, rosemary, and maggikraut.

Re: patch: fix of depot and schedule dialog

Reply #1
I don't know you can reproduce this or not.

1. Open vehicle shedule window
2. Click line name field
3. Select empty space
4. Click line name field again
5. Input text from keyboard

Result:
Crash

Re: patch: fix of depot and schedule dialog

Reply #2
does this bug appear also without my patch? I will look into it in the evening.

edit: the gui_scrolled_list delivers the value selection=-1 if one clicks below in the empty spot. This results in an empty string delivered to the gui_textinput. Since gui_textinput_t has no own buffer, writing in this empty string (only 1 byte allocated) gives errors.

I will update the patch later.
Parsley, sage, rosemary, and maggikraut.

Re: patch: fix of depot and schedule dialog

Reply #3
patch updated :) see first post. Is there any interest in this patch from the developers side?
Parsley, sage, rosemary, and maggikraut.

Re: patch: fix of depot and schedule dialog

Reply #4
small patch for depot-dialog (glitch appears if a line is deleted that is selected in the depot.
Parsley, sage, rosemary, and maggikraut.