[harmattan] laod the noteeditor only when needed, on a sidenote: this fixes #155 for me

This commit is contained in:
Hauke Schade 2015-04-13 18:41:58 +02:00
parent 19caad3bb1
commit 2c589a07e1

View file

@ -327,6 +327,7 @@ Page {
text: qsTr("Edit Note")
enabled: !network.loading
onClicked: {
var noteEditor = noteEditorComponent.createObject(root)
noteEditor.previousNote = root.note
noteEditor.feedItemPage = root
noteEditor.open()
@ -355,7 +356,8 @@ Page {
}
}
NoteEditor {
id: noteEditor
Component {
id: noteEditorComponent
NoteEditor { }
}
}