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

List:       kde-commits
Subject:    KDE/kdebase/apps/keditbookmarks
From:       Daniel Teske <teske () squorn ! de>
Date:       2008-08-17 14:27:49
Message-ID: 1218983269.523097.28534.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 848372 by teske:

Fix text input in the text fields at the bottom in keditbookmarks.

BUG: 167855



 M  +9 -5      bookmarkinfo.cpp  


--- trunk/KDE/kdebase/apps/keditbookmarks/bookmarkinfo.cpp #848371:848372
@@ -74,15 +74,19 @@
     }
 
     // read/write fields
-    m_title_le->setReadOnly( (bk.isSeparator()|| !bk.hasParent() )? true : false);
-    m_title_le->setText(bk.fullText());
+    m_title_le->setReadOnly( (bk.isSeparator()|| !bk.hasParent() )? true : false);    
+    if (bk.fullText() != m_title_le->text())
+        m_title_le->setText(bk.fullText());
 
     m_url_le->setReadOnly(bk.isGroup() || bk.isSeparator());
-    m_url_le->setText(bk.isGroup() ? QString() : bk.url().pathOrUrl());
+    QString urlText = bk.isGroup() ? QString() : bk.url().pathOrUrl();
+    if (m_url_le->text() != urlText)
+        m_url_le->setText(urlText);
 
     m_comment_le->setReadOnly((bk.isSeparator()|| !bk.hasParent()) ? true : false );
-    m_comment_le->setText(
-            EditCommand::getNodeText(bk, QStringList() << "desc"));
+    QString commentText = EditCommand::getNodeText(bk, QStringList() << "desc");
+    if (m_comment_le->text() != commentText)
+        m_comment_le->setText(commentText);
 
     // readonly fields
     updateStatus();
[prev in list] [next in list] [prev in thread] [next in thread] 

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