Mageia Bugzilla – Attachment 2124 Details for
Bug 3260
"Reload partition table" results in no partition being show
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix drawing partitions after rescan
3260.diff (text/plain), 1.55 KB, created by
Thierry Vignaud
on 2012-04-27 18:28:52 CEST
(
hide
)
Description:
fix drawing partitions after rescan
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-04-27 18:28:52 CEST
Size:
1.55 KB
patch
obsolete
>commit 130a08ec3e60972dd6eb2fa45bd048b9215faa28 >Author: Dousig <thierry.vignaud@gmail.com> >Date: Fri Apr 27 18:27:42 2012 +0200 > > (main,try_) fix partitions not being shown after clicking on "Reload > partition table" (mga#3260) > >diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm >index 8b205df..4129f29 100644 >--- a/perl-install/diskdrake/hd_gtk.pm >+++ b/perl-install/diskdrake/hd_gtk.pm >@@ -83,6 +83,7 @@ sub main { > ); > my ($lock, $initializing) = (undef, 1); > $update_all = sub { >+ my ($o_refresh_gui) = @_; > state $not_first; > return if $initializing && $not_first; > $not_first = 1; >@@ -95,6 +96,10 @@ sub main { > current_kind_changed($in, $current_kind); > current_entry_changed($current_kind, $current_entry); > $lock = 0; >+ if ($o_refresh_gui) { >+ $notebook_widget->set_current_page(-1); >+ $notebook_widget->set_current_page(0); >+ } > }; > create_automatic_notebooks($notebook_widget); > >@@ -129,6 +134,7 @@ sub try_ { > } > if ($v eq 'force_reload') { > $all_hds = $do_force_reload->(); >+ $update_all->(1); > } > > $current_entry = '' if !diskdrake::interactive::is_part_existing($current_entry, $all_hds); >diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS >index 37d99f9..72ba811 100644 >--- a/perl-install/install/NEWS >+++ b/perl-install/install/NEWS >@@ -1,4 +1,6 @@ > - partitioning: >+ o fix partitions not being shown after clicking on "Reload partition table" >+ (mga#3260) > o run udevadm in installer too > (might fix unnecessary reboot (mga#4439)) >
commit 130a08ec3e60972dd6eb2fa45bd048b9215faa28 Author: Dousig <thierry.vignaud@gmail.com> Date: Fri Apr 27 18:27:42 2012 +0200 (main,try_) fix partitions not being shown after clicking on "Reload partition table" (mga#3260) diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index 8b205df..4129f29 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -83,6 +83,7 @@ sub main { ); my ($lock, $initializing) = (undef, 1); $update_all = sub { + my ($o_refresh_gui) = @_; state $not_first; return if $initializing && $not_first; $not_first = 1; @@ -95,6 +96,10 @@ sub main { current_kind_changed($in, $current_kind); current_entry_changed($current_kind, $current_entry); $lock = 0; + if ($o_refresh_gui) { + $notebook_widget->set_current_page(-1); + $notebook_widget->set_current_page(0); + } }; create_automatic_notebooks($notebook_widget); @@ -129,6 +134,7 @@ sub try_ { } if ($v eq 'force_reload') { $all_hds = $do_force_reload->(); + $update_all->(1); } $current_entry = '' if !diskdrake::interactive::is_part_existing($current_entry, $all_hds); diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 37d99f9..72ba811 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,4 +1,6 @@ - partitioning: + o fix partitions not being shown after clicking on "Reload partition table" + (mga#3260) o run udevadm in installer too (might fix unnecessary reboot (mga#4439))
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3260
:
1359
| 2124 |
9416