mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Save the status of the tree before trying to reset the display.
This is a try: when the user changes the orientation on the columns by clicking on the title of them and organizing by something that's not the number, we lost track of the opened branches. this commit doesn't fix that, but it fixes a possible similar issue. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
7dbf76384f
commit
38287a1c1e
2 changed files with 22 additions and 4 deletions
|
@ -60,6 +60,8 @@ MainWindow::MainWindow() : helpView(0)
|
|||
ui.ListWidget->reloadHeaderActions();
|
||||
ui.ListWidget->setFocus();
|
||||
ui.globe->reload();
|
||||
ui.ListWidget->expand(ui.ListWidget->model()->index(0,0));
|
||||
ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0,0), QAbstractItemView::PositionAtCenter);
|
||||
}
|
||||
|
||||
// this gets called after we download dives from a divecomputer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue