From ade18a3bf5111a8ff7e43e94ca003c0dd64bc89d Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 08 Jan 2003 16:44:31 +0000 Subject: fix for empty _*.txt entries when there are no other notes --- (limited to 'noncore') 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() { if(!loaded) { Config cfg("Notes"); cfg.setGroup("Docs"); - QString lastDoc=cfg.readEntry( "LastDoc",""); + QString lastDoc=cfg.readEntry( "LastDoc","notes"); DocLnk nf; nf.setType("text/plain"); nf.setFile(lastDoc); @@ -388,7 +388,7 @@ void NotesControl::load(const QString & file) { DocLnk nf; nf.setType("text/plain"); nf.setFile( temp); - + if(!temp.isEmpty()) loadDoc(nf); loaded=true; } -- cgit v0.9.0.2