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

List:       kde-bugs-dist
Subject:    [Bug 76299] Create template: overwriting by clicking on the
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-02-28 0:22:28
Message-ID: 20040228002228.9322.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=76299      




------- Additional Comments From nicolasg snafu de  2004-02-28 01:22 -------
CVS commit by goutte: 

When a template gets selected, show its name in the name line edit.
CCMAIL:76299 bugs kde org


  M +9 -1      koTemplateCreateDia.cc   1.43


--- koffice/lib/kofficeui/koTemplateCreateDia.cc  #1.42:1.43
 @ -176,5 +176,13  @ KoTemplateCreateDia::~KoTemplateCreateDi
 void KoTemplateCreateDia::slotSelectionChanged()
 {
-    d->m_remove->setEnabled(d->m_groups->currentItem());
+    const QListViewItem* item = d->m_groups->currentItem();
+    d->m_remove->setEnabled( item );
+    if ( ! item )
+        return;
+    
+    if ( item->depth() > 0 )
+    {
+        d->m_name->setText( item->text( 0 ) );
+    }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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