diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp index f7d882769f..d80a7e0eb6 100644 --- a/src/preferences/backgrounds/BackgroundsView.cpp +++ b/src/preferences/backgrounds/BackgroundsView.cpp @@ -242,8 +242,9 @@ BackgroundsView::BackgroundsView() BackgroundsView::~BackgroundsView() { - delete fPanel; + // The order matter. The last panel saves the state delete fFolderPanel; + delete fPanel; }