Partition graph disappears after a swap partition has been deleted
Bug #583746 reported by
fabiengb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gparted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gparted
On Ubuntu 10.04
GParted 0.5.1-1ubuntu2
A disk include a swap partition that is wanted to be deleted : http://
After having deleted the swap partition, the partition table graph disappeared : http://
The graph can be retrieved by selecting another disk, and selecting back the disk we were working on.
To post a comment you must log in.
Thank you for reporting this problem.
The visual display of the disk seems to consistently disappear when enough operations have been added to the queue so that a scrollbar is required (about 4 operations).
I have been able to prevent this from happening if I comment out the following lines in HBoxOperations. cc::load_ operations:
//make scrollwindow focus on the last operation in the list operations ->children() .size() > 0 ) operations .set_cursor( static_ cast<Gtk: :TreePath> ( static_ cast<Gtk: :TreeRow> ( --liststore_ operations ->children() .end()) ) ) ) ;
if ( liststore_
treeview_
*(
Currently in the git respository these can be seen at the following link: git.gnome. org/browse/ gparted/ tree/src/ HBoxOperations. cc#n76
http://
Interestingly, if I change the "set_cursor" method to a "scroll_to_row" method, then this problem does not occur for an additional 2 operations (about 6 operations total).
The exact cause of this problem is still a mystery.
As a side note, a similar problem can occur when undoing many operations.