[harmattan] laod the noteeditor only when needed, on a sidenote: this fixes #155 for me
This commit is contained in:
parent
19caad3bb1
commit
2c589a07e1
1 changed files with 4 additions and 2 deletions
|
|
@ -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 { }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue