From 65b553022c3ff0190516e501ec49418428eb863e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 28 Sep 2019 20:15:24 -0700 Subject: [PATCH] Qt: Fix LibraryController initialization (fixes #1324) --- CHANGES | 1 + src/platform/qt/library/LibraryController.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 3ed7e3302..449403325 100644 --- a/CHANGES +++ b/CHANGES @@ -44,6 +44,7 @@ Other fixes: - Qt: Only show emulator restart warning once per settings saving - FFmpeg: Drain recording buffers - Shaders: Fix gba-color shader resolution (fixes mgba.io/i/1435) + - Qt: Fix LibraryController initialization (fixes mgba.io/i/1324) Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash diff --git a/src/platform/qt/library/LibraryController.cpp b/src/platform/qt/library/LibraryController.cpp index 3f2a5fc96..b7756437b 100644 --- a/src/platform/qt/library/LibraryController.cpp +++ b/src/platform/qt/library/LibraryController.cpp @@ -51,6 +51,7 @@ LibraryController::LibraryController(QWidget* parent, const QString& path, Confi m_libraryGrid = std::make_unique(this); addWidget(m_libraryGrid->widget()); + m_currentStyle = LibraryStyle::STYLE_TREE; // Make sure setViewStyle does something setViewStyle(LibraryStyle::STYLE_LIST); refresh(); }