Re: r2119 bug and fix: wrong behaviour of convoys in depots
Reply #13 –
this does not work always. sometimes the convoy has the right schedule and line sometimes not.
I tried several times:
-Create line 1 from a-b
-Create convoy, select that line
-Change schedule with additional halt c
-Start convoy
Sometimes the vehicle belongs to line 1, stops a and b, sometimes it belongs to no line, stops abc. So the check works atleast, but gives inconsistent results.
Removing one else did cure the issue (hopefully): in fahrplan_gui::infowin_event, in the block
if(ev->ev_cl**** == INFOWIN && ev->ev_code == WIN_CLOSE ) {
...
// just recheck if schedules match
// remove the else here
if( cnv->get_line().is_bound() && !cnv->get_line()->get_fahrplan()->matches( sp->get_welt(), fpl ) ) {
cnv->unset_line();
}
the idea is that the check is done when the window is closed