~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

« back to all changes in this revision

Viewing changes to Tomboy/Addins/NoteOfTheDay/NoteOfTheDayApplicationAddin.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-09 00:30:16 UTC
  • mfrom: (1.3.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100209003016-0yytp54kcu2n6m67
Tags: 1.1.2-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                void CheckNewDay (object sender, EventArgs args)
20
20
                {
21
21
                        Note notd = NoteOfTheDay.GetNoteByDate (manager, DateTime.Today);
22
 
                        if (notd == null) {
 
22
                        if (notd == null && !manager.ReadOnly) {
23
23
                                NoteOfTheDay.CleanupOld (manager);
24
24
 
25
25
                                // Create a new NotD if the day has changed