[gparted] Fix available Partition menu options not being updated on rescan (!38)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Fix available Partition menu options not being updated on rescan (!38)
- Date: Wed, 24 Apr 2019 15:05:37 +0000 (UTC)
commit 4939b941ddd333b1e8070437ff312f1fc09f25b9
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Fri Apr 19 20:10:53 2019 +0100
Fix available Partition menu options not being updated on rescan (!38)
Select a partition and look at the available actions in the Partition
menu. Then add or remove some commands which that particular file
system uses and rescan to detect those changes. Open the Partition menu
again. It doesn't reflect the changes of supported actions seen in the
File System Support dialog. Select a different partition and then
select the original partition again. Now the available actions in the
Partition menu reflect the changes of supported actions.
Have been testing by adding and removing /sbin/e2label to add and
remove EXT2/3/4 file system labelling support just because that feature
has existed for a very long time and EXT2/3/4 are displayed near the top
of the File System Support dialog. Tested this minor issue existed as
far back as GParted 0.3.7.
Fix by simply also refreshing the valid operations to update the
Partition menu after updating the found file system specific commands.
Closes !38 - Fixes for minor issues with File System Support rescanning
src/Win_GParted.cc | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 75c1248e..c0cde730 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1696,6 +1696,9 @@ void Win_GParted::menu_gparted_features()
partitionmenu_items[MENU_FORMAT]->unset_submenu();
partitionmenu_items[MENU_FORMAT]->set_submenu(*create_format_menu());
partitionmenu_items[MENU_FORMAT]->get_submenu()->show_all_children();
+
+ // Update valid operations for the currently selected partition.
+ set_valid_operations();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]