Fix crash caused by accessing the UI thread from a background thread.

ComicVineDialog was calling close from background, plus accepted is emmited from a background thread, so it needs a QueuedConnection.
This commit is contained in:
Luis Ángel San Martín
2018-05-31 18:09:41 +02:00
parent 26c2226032
commit 229afbc9a9
2 changed files with 4 additions and 6 deletions

View File

@ -1054,7 +1054,7 @@ void LibraryWindow::createConnections()
connect(propertiesDialog,SIGNAL(accepted()),navigationController,SLOT(reselectCurrentSource()));
//comic vine
connect(comicVineDialog,SIGNAL(accepted()),navigationController,SLOT(reselectCurrentSource()));
connect(comicVineDialog,SIGNAL(accepted()),navigationController,SLOT(reselectCurrentSource()), Qt::QueuedConnection);
connect(updateLibraryAction,SIGNAL(triggered()),this,SLOT(updateLibrary()));
connect(renameLibraryAction,SIGNAL(triggered()),this,SLOT(renameLibrary()));