From 0db61bd22d1a67863a4510a82c5d0dda3f608165 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 19 May 2017 14:14:48 +0200 Subject: [PATCH] QPhotoRec: add serial number if available to disk description --- src/qphotorec.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp index f3a44f5f..0047b73e 100644 --- a/src/qphotorec.cpp +++ b/src/qphotorec.cpp @@ -441,9 +441,12 @@ void QPhotorec::HDDlistWidget_updateUI() element_disk=element_disk->next, i++) { disk_t *disk=element_disk->disk; + QString description=disk->description_short(disk); + if(disk->serial_no!=NULL) + description += ", S/N:" + QString(disk->serial_no); HDDlistWidget->addItem( QIcon::fromTheme("drive-harddisk", QIcon(":res/gnome/drive-harddisk.png")), - disk->description_short(disk)); + description); if(disk==selected_disk) HDDlistWidget->setCurrentIndex(i); }