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

List:       kde-commits
Subject:    KDE/kdebase/konqueror/settings/filetypes
From:       David Faure <faure () kde ! org>
Date:       2006-10-16 11:13:06
Message-ID: 1160997186.622688.13371.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 595977 by dfaure:

This is never called with 0 as argument, we use a widget stack nowadays to hide the \
details stuff when selecting a group.


 M  +6 -12     filetypedetails.cpp  


--- trunk/KDE/kdebase/konqueror/settings/filetypes/filetypedetails.cpp #595976:595977
@@ -276,26 +276,20 @@
 void FileTypeDetails::setTypeItem( TypesListItem * tlitem )
 {
   m_item = tlitem;
-  if ( tlitem )
-    iconButton->setIcon(tlitem->icon());
-  else
-    iconButton->resetIcon();
-  description->setText(tlitem ? tlitem->comment() : QString());
-  if ( tlitem )
-    m_rbGroupSettings->setText( i18n("Use settings for '%1' group", \
tlitem->majorType() ) ); +  Q_ASSERT(tlitem);
+  iconButton->setIcon(tlitem->icon());
+  description->setText(tlitem->comment());
+  m_rbGroupSettings->setText( i18n("Use settings for '%1' group", \
tlitem->majorType() ) );  extensionLB->clear();
   addExtButton->setEnabled(true);
   removeExtButton->setEnabled(false);
 
   serviceListWidget->setTypeItem( tlitem );
   embedServiceListWidget->setTypeItem( tlitem );
-  m_autoEmbed->setButton( tlitem ? tlitem->autoEmbed() : -1 );
+  m_autoEmbed->setButton( tlitem->autoEmbed() );
   m_rbGroupSettings->setEnabled( tlitem->canUseGroupSetting() );
 
-  if ( tlitem )
-    extensionLB->insertStringList(tlitem->patterns());
-  else
-    extensionLB->clear();
+  extensionLB->insertStringList(tlitem->patterns());
 
   updateAskSave();
 }


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

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