From b877cf473205bf353c9c3ebb7f90a70f5d69ac5c Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 13 Apr 2014 19:29:01 +0200 Subject: [PATCH] QPhotoRec: fix selection of whole disk --- src/qphotorec.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp index b55e2224..f5813d26 100644 --- a/src/qphotorec.cpp +++ b/src/qphotorec.cpp @@ -180,6 +180,12 @@ void QPhotorec::partition_selected() return ; } } + if(list_part!=NULL) + { + selected_partition=list_part->part; + buttons_updateUI(); + return ; + } return ; } for(tmp=list_part; tmp!=NULL; tmp=tmp->next) @@ -369,6 +375,8 @@ void QPhotorec::buttons_updateUI() if(selected_disk==NULL || selected_partition==NULL) { button_search->setEnabled(false); + qwholeRadioButton->setChecked(true); + qfreeRadioButton->setEnabled(false); return ; } if(selected_partition->upart_type==UP_EXT2 || selected_partition->upart_type==UP_EXT3 || selected_partition->upart_type==UP_EXT4)