fixed an issue where d'n'd was broken with qt 5.15 or osx >= 10.15 if QMimeData::setUrls was filled with empty urls

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 7728d67f8f
commit 3923b33531
  1. 7
      src/document/UBDocumentController.cpp

@ -661,7 +661,14 @@ QMimeData *UBDocumentTreeModel::mimeData (const QModelIndexList &indexes) const
}
}
#if defined(Q_OS_OSX)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
if (QOperatingSystemVersion::current().minorVersion() < 15) /* < Mojave */
mimeData->setUrls(urlList);
#endif
#else
mimeData->setUrls(urlList);
#endif
mimeData->setIndexes(indexList);
return mimeData;

Loading…
Cancel
Save