Added a check in merge documents that there is actually something to merge
This commit is contained in:
@@ -101,6 +101,12 @@ class GuiDocMerge(QDialog):
|
|||||||
for i in range(self.listBox.count()):
|
for i in range(self.listBox.count()):
|
||||||
finalOrder.append(self.listBox.item(i).data(Qt.UserRole))
|
finalOrder.append(self.listBox.item(i).data(Qt.UserRole))
|
||||||
|
|
||||||
|
if len(finalOrder) == 0:
|
||||||
|
self.theParent.makeAlert((
|
||||||
|
"No source documents found. Nothing to do."
|
||||||
|
), nwAlert.ERROR)
|
||||||
|
return
|
||||||
|
|
||||||
theDoc = NWDoc(self.theProject, self.theParent)
|
theDoc = NWDoc(self.theProject, self.theParent)
|
||||||
theText = ""
|
theText = ""
|
||||||
for tHandle in finalOrder:
|
for tHandle in finalOrder:
|
||||||
|
|||||||
Reference in New Issue
Block a user