1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#81 state:fixed] Show a message dialog when a duplicate scan yields no result.

This commit is contained in:
Virgil Dupras
2010-01-13 10:39:27 +01:00
parent b5e645cb10
commit c95b356a99
2 changed files with 16 additions and 9 deletions

View File

@@ -249,7 +249,12 @@ class DupeGuru(DupeGuruBase, QObject):
self.emit(SIGNAL('resultsChanged()'))
if jobid == JOB_LOAD:
self.emit(SIGNAL('directoriesChanged()'))
if jobid in (JOB_MOVE, JOB_COPY, JOB_DELETE) and self.last_op_error_count > 0:
elif jobid in (JOB_MOVE, JOB_COPY, JOB_DELETE) and self.last_op_error_count > 0:
msg = "{0} files could not be processed.".format(self.results.mark_count)
QMessageBox.warning(self.main_window, 'Warning', msg)
elif jobid == JOB_SCAN:
if not self.results.groups:
title = "Scanning complete"
msg = "No duplicates found."
QMessageBox.information(self.main_window, title, msg)