Don't show empty errors

This commit is contained in:
Martchus 2016-11-01 16:57:20 +01:00
parent 98dcfdd609
commit 2071aaa2e7
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void DirView::mouseReleaseEvent(QMouseEvent *event)
emit scanDir(*dir);
}
}
} else if(clickedIndex.row() == 7) {
} else if(clickedIndex.row() == 7 && !dir->errors.empty()) {
// show errors
auto *textViewDlg = new TextViewDialog(tr("Errors of %1").arg(dir->label.isEmpty() ? dir->id : dir->label));
auto *browser = textViewDlg->browser();