[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/plasma/applets/notes
From:       Chani Armitage <chanika () gmail ! com>
Date:       2008-03-25 1:07:49
Message-ID: 1206407269.391275.22880.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 789727 by chani:

make sure setDefaultText doesn't clobber the config text


 M  +4 -1      notes.cpp  


--- trunk/extragear/plasma/applets/notes/notes.cpp #789726:789727
@@ -47,8 +47,11 @@
     KConfigGroup cg = config();
 
     updateTextGeometry();
-    m_textArea->setPlainText(cg.readEntry("autoSave",QString()));
     m_textArea->setDefaultText(i18n("Welcome to Notes Plasmoid! Type your notes here..."));
+    QString text = cg.readEntry("autoSave",QString());
+    if (! text.isEmpty()) {
+        m_textArea->setPlainText(text);
+    }
     m_textArea->setStyled(false);
     //FIXME this has no effect right now. try setTextInteractionFlags
     m_textArea->setOpenExternalLinks(true);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic