summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2003-01-08 16:44:31 (UTC)
committer llornkcor <llornkcor>2003-01-08 16:44:31 (UTC)
commitade18a3bf5111a8ff7e43e94ca003c0dd64bc89d (patch) (unidiff)
treef5ea5e991d7e60ba642612d7ce7b0c3f9108246f /noncore
parent6f03e28e8fd89c29de7b4cf97a2f6550a5ad8832 (diff)
downloadopie-ade18a3bf5111a8ff7e43e94ca003c0dd64bc89d.zip
opie-ade18a3bf5111a8ff7e43e94ca003c0dd64bc89d.tar.gz
opie-ade18a3bf5111a8ff7e43e94ca003c0dd64bc89d.tar.bz2
fix for empty _*.txt entries when there are no other notes
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp
index 2b25476..4e98b31 100644
--- a/noncore/applets/notesapplet/notes.cpp
+++ b/noncore/applets/notesapplet/notes.cpp
@@ -363,7 +363,7 @@ void NotesControl::load() {
363 if(!loaded) { 363 if(!loaded) {
364 Config cfg("Notes"); 364 Config cfg("Notes");
365 cfg.setGroup("Docs"); 365 cfg.setGroup("Docs");
366 QString lastDoc=cfg.readEntry( "LastDoc",""); 366 QString lastDoc=cfg.readEntry( "LastDoc","notes");
367 DocLnk nf; 367 DocLnk nf;
368 nf.setType("text/plain"); 368 nf.setType("text/plain");
369 nf.setFile(lastDoc); 369 nf.setFile(lastDoc);
@@ -388,7 +388,7 @@ void NotesControl::load(const QString & file) {
388 DocLnk nf; 388 DocLnk nf;
389 nf.setType("text/plain"); 389 nf.setType("text/plain");
390 nf.setFile( temp); 390 nf.setFile( temp);
391 391 if(!temp.isEmpty())
392 loadDoc(nf); 392 loadDoc(nf);
393 loaded=true; 393 loaded=true;
394 } 394 }