core & ui_qt: fix selection
ui_qt: fix last/current position for scrollbar