Qt: Fix library crash when another instance is open...again

This commit is contained in:
Vicki Pfau 2017-06-28 12:02:09 -07:00
parent bea917f868
commit 88983da5c4
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}