Qt: Fix library crash when another instance is open...again
Vicki Pfau vi@endrift.com
Wed, 28 Jun 2017 12:02:09 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
M
src/platform/qt/library/LibraryController.cpp
→
src/platform/qt/library/LibraryController.cpp
@@ -45,8 +45,10 @@ {
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(); }