sort devices alphabetically by default.

* src/GParted_Core.cc: sort devices alphabetically by default.
This commit is contained in:
Bart Hakvoort 2006-03-26 09:16:13 +00:00
parent b52bfbc308
commit e98f0934c4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2006-03-26 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: sort devices alphabetically by default.
2006-03-25 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/DrawingAreaVisualDisk.cc: prevented a possible segfault at

View file

@ -140,8 +140,9 @@ void GParted_Core::get_devices( std::vector<Device> & devices )
lp_device = ped_device_get_next( lp_device ) ;
}
close_device_and_disk() ;
}
std::sort( device_paths .begin(), device_paths .end() ) ;
}
for ( unsigned int t = 0 ; t < device_paths .size() ; t++ )
{