summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/action.cpp1
-rw-r--r--gui/partitionlist.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 27fd7a5d7..ff2c2e00f 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -462,6 +462,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
gui_print("Simulating actions...\n");
} else if (!simulate) {
PartitionManager.Mount_By_Path(arg, true);
+ PartitionManager.Add_MTP_Storage(arg);
} else
gui_print("Simulating actions...\n");
return 0;
diff --git a/gui/partitionlist.cpp b/gui/partitionlist.cpp
index 2d464e1b6..9cc6a777b 100644
--- a/gui/partitionlist.cpp
+++ b/gui/partitionlist.cpp
@@ -749,6 +749,7 @@ int GUIPartitionList::NotifyTouch(TOUCH_STATE state, int x, int y)
if (!mList.at(actualSelection).selected) {
if (PartitionManager.Mount_By_Path(mList.at(actualSelection).Mount_Point, true)) {
mList.at(actualSelection).selected = 1;
+ PartitionManager.Add_MTP_Storage(mList.at(actualSelection).Mount_Point);
mUpdate = 1;
}
} else {