From b75812a99db39cc99a5d0b1420f0577e78828a04 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 21 Jul 2017 14:27:17 -0700 Subject: [PATCH] Qt: Don't rebuild library view if style hasn't changed --- CHANGES | 2 ++ src/platform/qt/library/LibraryController.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 52fc56bc9..a161617a5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ 0.6.1: (Future) Bugfixes: - Python: Fix importing .gb or .gba before .core +Misc: + - Qt: Don't rebuild library view if style hasn't changed 0.6.0: (2017-07-16) Features: diff --git a/src/platform/qt/library/LibraryController.cpp b/src/platform/qt/library/LibraryController.cpp index fc558f226..1a7fc8bf4 100644 --- a/src/platform/qt/library/LibraryController.cpp +++ b/src/platform/qt/library/LibraryController.cpp @@ -83,6 +83,9 @@ LibraryController::~LibraryController() { } void LibraryController::setViewStyle(LibraryStyle newStyle) { + if (m_currentStyle == newStyle) { + return; + } m_currentStyle = newStyle; AbstractGameList* newCurrentList = nullptr;