fixed bug with check for max amount of partitions while pasting a copied partition.

This commit is contained in:
Bart Hakvoort 2004-09-26 08:47:00 +00:00
parent 2929088444
commit ce130c77e3
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-09-26 Bart Hakvoort <gparted@users.sf.net>
* src/Win_GParted.cc: fixed bug with check for max amount of partitions while pasting a copied partition.
2004-09-25 Raphael Higino <raphaelh@cvs.gnome.org>
* src/Win_GParted.cc: Fixed typo bugs (word "than" written

View File

@ -773,8 +773,8 @@ void Win_GParted::activate_copy()
void Win_GParted::activate_paste()
{
//Display error if user tries to create a fifth primary partition
if ( ! selected_partition.inside_extended && primary_count >= 4 )
//Display error if user tries to create more primary partitions than the partition table can hold.
if ( ! selected_partition.inside_extended && primary_count >=devices[ current_device ] ->Get_Max_Amount_Of_Primary_Partitions() )
{
os << "<span weight=\"bold\" size=\"larger\">" ;
os << String::ucompose( _("It is not possible to create more than %1 primary partitions"), devices[ current_device ] ->Get_Max_Amount_Of_Primary_Partitions() ) ;
@ -800,7 +800,7 @@ void Win_GParted::activate_paste()
void Win_GParted::activate_new()
{
//Display error if user tries to create more primary partitions then the partition table can hold.
//Display error if user tries to create more primary partitions than the partition table can hold.
if ( ! selected_partition.inside_extended && primary_count >= devices[ current_device ] ->Get_Max_Amount_Of_Primary_Partitions() )
{
os << "<span weight=\"bold\" size=\"larger\">" ;