diff --git a/src/qml/GlobalVar.qml b/src/qml/GlobalVar.qml index f82a437f..754dfed3 100644 --- a/src/qml/GlobalVar.qml +++ b/src/qml/GlobalVar.qml @@ -27,7 +27,8 @@ Item { Connections { target: albumControl onSigRepeatUrls: { - DTK.sendMessage(stackControl, qsTr("The photo/video already exists"), "warning") + if (urls.length > 0) + DTK.sendMessage(stackControl, qsTr("The photo/video already exists"), "warning") } } diff --git a/src/qml/MainAlbumView.qml b/src/qml/MainAlbumView.qml index 3db172c7..aa039fa8 100644 --- a/src/qml/MainAlbumView.qml +++ b/src/qml/MainAlbumView.qml @@ -245,7 +245,8 @@ Item { leftSidebar.enabled = true thumbnailImage.enabled = true titleAlubmRect.enabled = true - DTK.sendMessage(stackControl, qsTr("Import failed"), "warning") + if (urls.length === 0) + DTK.sendMessage(stackControl, qsTr("Import failed"), "warning") } } }