Remove unnecessary call to combobox_changed(false)

... in Dialog_Partition_New::set_data().  As the change signal for
combo_filesystem has already been connected, combo_changed(false) is
automatically called by setting the active selection.  Therefore remove
the unnecessary call.
This commit is contained in:
Mike Fleetwood 2021-02-28 14:21:56 +00:00 committed by Curtis Gedak
parent 400fc8397e
commit eb5ad50fef
1 changed files with 5 additions and 3 deletions

View File

@ -178,9 +178,11 @@ void Dialog_Partition_New::set_data( const Device & device,
selected_partition.sector_size, UNIT_MIB ) );
MB_PER_PIXEL = TOTAL_MB / 500.00 ;
//set first enabled file system
// Set default creatable file system.
// (As the change signal for combo_filesystem has already been connected,
// combobox_changed(false) is automatically called by setting the active
// selection. This is needed to initialise everything correctly).
combo_filesystem.set_active(first_creatable_fs);
combobox_changed(false);
//set spinbuttons initial values
spinbutton_after .set_value( 0 ) ;