From 287d72fa6066b67eff1cd503e1e6425e0bf8182f Mon Sep 17 00:00:00 2001 From: ronso0 Date: Sun, 8 Aug 2021 03:37:35 +0200 Subject: [PATCH] WLibrary: avoid unnecessary save/restore state --- src/widget/wlibrary.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widget/wlibrary.cpp b/src/widget/wlibrary.cpp index dad670ed3540..39b180c5f518 100644 --- a/src/widget/wlibrary.cpp +++ b/src/widget/wlibrary.cpp @@ -73,9 +73,8 @@ void WLibrary::switchToView(const QString& name) { //qDebug() << "WLibrary::setCurrentWidget" << name; setCurrentWidget(widget); lview->onShow(); + lview->restoreCurrentViewState(); } - - lview->restoreCurrentViewState(); } }