all repos — mgba @ 45844301f6d628654f3b61450b25735dad18bd65

mGBA Game Boy Advance Emulator

Qt: Fix library view being parented improperly
Vicki Pfau vi@endrift.com
Thu, 16 Mar 2017 10:58:46 -0700
commit

45844301f6d628654f3b61450b25735dad18bd65

parent

e5116104261fe3649c56ecc2baf5d8a8636d33fb

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -104,7 +104,7 @@ m_savedScale = multiplier.toInt();

i = m_savedScale; } #ifdef USE_SQLITE3 - m_libraryView = new LibraryView(this); + m_libraryView = new LibraryView(); ConfigOption* showLibrary = m_config->addOption("showLibrary"); showLibrary->connect([this](const QVariant& value) { if (value.toBool()) {

@@ -209,6 +209,10 @@ #endif

#ifdef USE_MAGICK delete m_gifView; +#endif + +#ifdef USE_SQLITE3 + delete m_libraryView; #endif }