-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index f2dbabf..92fdb0a 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp | |||
@@ -305,29 +305,29 @@ void NotesControl::save() { | |||
305 | doc->setName(docname); | 305 | doc->setName(docname); |
306 | 306 | ||
307 | FileManager fm; | 307 | FileManager fm; |
308 | if ( !fm.saveFile( *doc, rt ) ) { | 308 | if ( !fm.saveFile( *doc, rt ) ) { |
309 | } | 309 | } |
310 | 310 | ||
311 | oldDocName=docname; | 311 | oldDocName=docname; |
312 | edited=false; | 312 | edited=false; |
313 | qDebug("save"); | 313 | // qDebug("save"); |
314 | if (doPopulate) | 314 | if (doPopulate) |
315 | populateBox(); | 315 | populateBox(); |
316 | } | 316 | } |
317 | cfg.writeEntry( "LastDoc",oldDocName ); | 317 | cfg.writeEntry( "LastDoc",oldDocName ); |
318 | cfg.write(); | 318 | cfg.write(); |
319 | 319 | ||
320 | } | 320 | } |
321 | } | 321 | } |
322 | 322 | ||
323 | void NotesControl::populateBox() { | 323 | void NotesControl::populateBox() { |
324 | box->clear(); | 324 | box->clear(); |
325 | qDebug("populate"); | 325 | // qDebug("populate"); |
326 | Config cfg("Notes"); | 326 | Config cfg("Notes"); |
327 | cfg.setGroup("Docs"); | 327 | cfg.setGroup("Docs"); |
328 | int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); | 328 | int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); |
329 | QStringList list; | 329 | QStringList list; |
330 | QString entryName; | 330 | QString entryName; |
331 | for ( int i = 0; i < noOfFiles; i++ ) { | 331 | for ( int i = 0; i < noOfFiles; i++ ) { |
332 | entryName.sprintf( "File%i", i + 1 ); | 332 | entryName.sprintf( "File%i", i + 1 ); |
333 | list.append(cfg.readEntry( entryName )); | 333 | list.append(cfg.readEntry( entryName )); |