summaryrefslogtreecommitdiffstats
path: root/src/qphotorec.cpp
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-04-13 19:29:01 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-04-13 19:29:01 +0200
commitb877cf473205bf353c9c3ebb7f90a70f5d69ac5c (patch)
tree0a80b760851ec7ea58802bec74ec39bcd1ef22ac /src/qphotorec.cpp
parentdd25874e792b5cf275ad3e236fb0f098769b7ec3 (diff)
QPhotoRec: fix selection of whole disk
Diffstat (limited to 'src/qphotorec.cpp')
-rw-r--r--src/qphotorec.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp
index b55e222..f5813d2 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)