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

List:       kde-commits
Subject:    kdebase/konqueror/keditbookmarks
From:       Laurent Montel <montel () kde ! org>
Date:       2004-01-22 16:44:43
Message-ID: 20040122164443.30B8526C8 () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Fix disable/enable "comment/url/name"
-> don't allow to add a url/comment when it's a separator 
-> don't allow to add a name/url/comment when item doesn't have a parent
(Perhaps backport for 3.2)


  M +3 -4      bookmarkinfo.cpp   1.9


--- kdebase/konqueror/keditbookmarks/bookmarkinfo.cpp  #1.8:1.9
@@ -91,12 +91,11 @@ void BookmarkInfoWidget::showBookmark(co
 
     // read/write fields
-
-    m_title_le->setReadOnly(false);
+    m_title_le->setReadOnly( (bk.isSeparator()|| !bk.hasParent() )? true : false);
     m_title_le->setText(bk.fullText());
 
-    m_url_le->setReadOnly(bk.isGroup());
+    m_url_le->setReadOnly(bk.isGroup() || bk.isSeparator());
     m_url_le->setText(bk.isGroup() ? QString::null : bk.url().url());
 
-    m_comment_le->setReadOnly(false);
+    m_comment_le->setReadOnly((bk.isSeparator()|| !bk.hasParent()) ? true : false );
     m_comment_le->setText(
             NodeEditCommand::getNodeText(bk, QStringList() << "desc"));


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

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