Qt: Don't rebuild library view if style hasn't changed
Vicki Pfau vi@endrift.com
Fri, 21 Jul 2017 14:27:17 -0700
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/platform/qt/library/LibraryController.cpp
→
src/platform/qt/library/LibraryController.cpp
@@ -83,6 +83,9 @@ }
} void LibraryController::setViewStyle(LibraryStyle newStyle) { + if (m_currentStyle == newStyle) { + return; + } m_currentStyle = newStyle; AbstractGameList* newCurrentList = nullptr;