mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix library view being parented improperly
This commit is contained in:
parent
e511610426
commit
45844301f6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue