Skip to content
Snippets Groups Projects
  1. Oct 27, 2015
  2. Oct 26, 2015
  3. Oct 25, 2015
  4. Oct 24, 2015
  5. Oct 23, 2015
  6. Oct 22, 2015
  7. Oct 19, 2015
  8. Oct 18, 2015
  9. Oct 17, 2015
    • Kahrl's avatar
      Fix GUITable selection issues with trees · c4d18623
      Kahrl authored
      - setOpenedTrees(): this internal function was calling setSelected()
        to update m_selected. Since setSelected() calls autoScroll(),
        this caused the scrollbar to scroll back to the selected row
        in some cases when that shouldn't be done.
      
        For example, clicking the "+" to open a tree caused autoscroll.
      
        Fix this by making setOpenedTrees() modify m_selected directly.
      
      - setDynamicData(): set scrollbar position after calling
        setSelected(), not before. This avoids setSelected()'s autoscroll
        messing up the scrollbar position again.
      
      - setSelected(): If an invisible row is selected, open all parents
        of the selected row in order to make the selected row visible.
      
        This fixes the issue where all the trees are closed again whenever
        you return from the setting edit dialog to the settings tab.
      c4d18623
Loading