QPhotoRec: fix selection of whole disk

This commit is contained in:
Christophe Grenier 2014-04-13 19:29:01 +02:00
parent dd25874e79
commit b877cf4732

View file

@ -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)