Qt: Fix library view being parented improperly

This commit is contained in:
Vicki Pfau 2017-03-16 10:58:46 -07:00
parent e511610426
commit 45844301f6
1 changed files with 5 additions and 1 deletions

View File

@ -104,7 +104,7 @@ Window::Window(ConfigController* config, int playerId, QWidget* parent)
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()) {
@ -210,6 +210,10 @@ Window::~Window() {
#ifdef USE_MAGICK
delete m_gifView;
#endif
#ifdef USE_SQLITE3
delete m_libraryView;
#endif
}
void Window::argumentsPassed(mArguments* args) {