Skip to content

Commit

Permalink
FIX: apply lien changes only to open schedule windows
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11638 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
prissi committed Feb 14, 2025
1 parent f163ab1 commit 4137da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/simutrans/gui/components/gui_schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class gui_schedule_entry_t :
else if(ev->button_state==1 ){
set_focus( this );
if( !gui_aligned_container_t::infowin_event( ev ) && stop.getroffen( ev->click_pos ) ) {
// not handled, so we make i aktive
// not handled, so we make it active
call_listeners( number );
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/simutrans/gui/convoi_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ void convoi_info_t::change_schedule()
void convoi_info_t::update_schedule()
{
cnv->check_pending_updates();
scd.init(cnv->get_schedule(), cnv->get_owner(), cnv, cnv->get_line(),true);
change_schedule();
if (switch_mode.get_aktives_tab() == &container_schedule) {
scd.init(cnv->get_schedule(), cnv->get_owner(), cnv, cnv->get_line(),true);
change_schedule();
cnv->set_state(convoi_t::EDIT_SCHEDULE);
scd.highlight_schedule(true);
}
Expand Down

0 comments on commit 4137da5

Please sign in to comment.