Custom profiles can now be renamed

This commit is contained in:
Jaime van Kessel 2016-06-03 15:00:09 +02:00
parent 80f24b6c54
commit 01999f7ddd

View File

@ -170,7 +170,7 @@ UM.ManagementPage
id: renameDialog; id: renameDialog;
object: base.currentItem != null ? base.currentItem.name : ""; object: base.currentItem != null ? base.currentItem.name : "";
property bool removeWhenRejected: false; property bool removeWhenRejected: false;
onAccepted: base.model.renameProfile(base.currentItem.name, newName.trim()); onAccepted: base.model.rename(base.currentItem.id, newName.trim());
onRejected: { onRejected: {
if(removeWhenRejected) { if(removeWhenRejected) {
base.model.removeProfile(base.currentItem.name) base.model.removeProfile(base.currentItem.name)