Qt: Fix library view being parented improperly
Vicki Pfau vi@endrift.com
Thu, 16 Mar 2017 10:58:46 -0700
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/Window.cpp
→
src/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 }