Ticket #7681: scroll_to_selection_hack.patch

File scroll_to_selection_hack.patch, 559 bytes (added by leavengood, 13 years ago)

Patch to Time which is a hack (NOT a fix to this ticket)

  • src/preferences/time/ZoneView.cpp

     
    126126        if (fCurrentZoneItem != NULL) {
    127127            fZoneList->Select(fZoneList->IndexOf(fCurrentZoneItem));
    128128            fCurrent->SetText(fCurrentZoneItem->Text());
     129            // This actually has to be called twice to work properly under
     130            // layout management
    129131            fZoneList->ScrollToSelection();
     132            fZoneList->ScrollToSelection();
    130133        }
    131134    }
    132135}