Remove redundant second if condition in Display_Info()
Remove second inner if condition performing the same check as the outer if: partition.type != GParted::TYPE_UNALLOCATED
This commit is contained in:
parent
e1dc89cd11
commit
b278782ef6
|
@ -512,18 +512,15 @@ void Dialog_Partition_Info::Display_Info()
|
||||||
|
|
||||||
if ( partition .type != GParted::TYPE_UNALLOCATED && partition .status != GParted::STAT_NEW )
|
if ( partition .type != GParted::TYPE_UNALLOCATED && partition .status != GParted::STAT_NEW )
|
||||||
{
|
{
|
||||||
//flags
|
// flags
|
||||||
if ( partition.type != GParted::TYPE_UNALLOCATED )
|
table->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Flags:") ) + "</b>" ),
|
||||||
{
|
1, 2,
|
||||||
table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Flags:") ) + "</b>" ),
|
top, bottom,
|
||||||
1, 2,
|
Gtk::FILL );
|
||||||
top, bottom,
|
table->attach( * Utils::mk_label( Glib::build_path( ", ", partition .flags ), true, false, true ),
|
||||||
Gtk::FILL ) ;
|
2, 3,
|
||||||
table ->attach( * Utils::mk_label( Glib::build_path( ", ", partition .flags ), true, false, true ),
|
top++, bottom++,
|
||||||
2, 3,
|
Gtk::FILL );
|
||||||
top++, bottom++,
|
|
||||||
Gtk::FILL ) ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Right field & value pair area
|
//Right field & value pair area
|
||||||
|
|
Loading…
Reference in New Issue