|
@@ -542,8 +542,12 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
|
|
|
print("Error removing item at path: (error.localizedDescription)")
|
|
|
}
|
|
|
}
|
|
|
- self.prePDFView.document = nil
|
|
|
- self.tempPDFDocument = nil
|
|
|
+ if self.prePDFView.document != nil {
|
|
|
+ self.prePDFView.document = nil
|
|
|
+ }
|
|
|
+ if self.tempPDFDocument != nil {
|
|
|
+ self.tempPDFDocument = nil
|
|
|
+ }
|
|
|
self.km_quick_endSheet()
|
|
|
}
|
|
|
func showCriticalAlert(_ alertMsg: String?) {
|