diff --git a/src/common/VNoteMainManager.cpp b/src/common/VNoteMainManager.cpp index 8f41846a..1abdcb9b 100644 --- a/src/common/VNoteMainManager.cpp +++ b/src/common/VNoteMainManager.cpp @@ -1006,7 +1006,7 @@ void VNoteMainManager::checkNoteVoice(const QVariantList &index) foreach (auto id, index) { int noteIndex = id.toInt(); VNoteItem *item = getNoteById(noteIndex); - if (item->haveVoice()) { + if (item && item->haveVoice()) { hasVoice = true; break; } diff --git a/src/gui/mainwindow/ItemListView.qml b/src/gui/mainwindow/ItemListView.qml index 57ef777d..dbe34f6a 100644 --- a/src/gui/mainwindow/ItemListView.qml +++ b/src/gui/mainwindow/ItemListView.qml @@ -252,6 +252,14 @@ Item { } onSelectSizeChanged: { mulChoices(selectSize); + if (selectSize > 1) { + var list = []; + for (var i = 0; i < selectedNoteItem.length; i++) { + list.push(itemModel.get(selectedNoteItem[i]).noteId); + } + VNoteMainManager.checkNoteVoice(list); + VNoteMainManager.checkNoteText(list); + } } ListModel {