Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[browser] Correctly save expanded node state when closing QGIS
Otherwise browser expanded nodes are never saved, and the browser
always returns to some random previous state
  • Loading branch information
nyalldawson committed Sep 16, 2020
1 parent 0234d4e commit 2eff061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -1839,6 +1839,7 @@ QgisApp::~QgisApp()
}

// these may have references to map layers which need to be cleaned up
mBrowserWidget->close(); // close first, to trigger save of state
delete mBrowserWidget;
mBrowserWidget = nullptr;
delete mBrowserWidget2;
Expand Down

0 comments on commit 2eff061

Please sign in to comment.