mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix library crash when another instance is open...again
This commit is contained in:
parent
bea917f868
commit
88983da5c4
|
@ -45,8 +45,10 @@ LibraryController::LibraryController(QWidget* parent, const QString& path, Confi
|
|||
mLibraryListingInit(&m_listing, 0);
|
||||
|
||||
if (!path.isNull()) {
|
||||
// This can return NULL if the library is already open
|
||||
m_library = mLibraryLoad(path.toUtf8().constData());
|
||||
} else {
|
||||
}
|
||||
if (!m_library) {
|
||||
m_library = mLibraryCreateEmpty();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue