~phablet-team/notes-app/trunk

« back to all changes in this revision

Viewing changes to Components/NoteList.qml

  • Committer: Bill Filler
  • Date: 2013-10-11 18:02:39 UTC
  • mfrom: (207.2.1 notes-app-save-on-exit)
  • Revision ID: bill.filler@canonical.com-20131011180239-lx2ub1y5hnq25yts
Save the currently expanded note when the application stops being active

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
           animation has finished */
48
48
        onCollapsed: noteList.commitNote(index, true);
49
49
 
 
50
        Connections {
 
51
            target: Qt.application
 
52
            onActiveChanged: {
 
53
                if (!Qt.application.active && noteList.currentIndex == index)
 
54
                    noteList.commitNote(index, true);
 
55
            }
 
56
        }
 
57
 
50
58
        property int itemIndex: index
51
59
    }
52
60