summaryrefslogtreecommitdiff
authordrw <drw>2004-11-16 17:52:25 (UTC)
committer drw <drw>2004-11-16 17:52:25 (UTC)
commite83f5b12337c22f365323aa00806b638a971e3a2 (patch) (unidiff)
treefc9c4a34ffc7c2400ccd373f6947626cded6075f
parent3ba09273d96a32263bb22bfbc32fcc6290bde6e8 (diff)
downloadopie-e83f5b12337c22f365323aa00806b638a971e3a2.zip
opie-e83f5b12337c22f365323aa00806b638a971e3a2.tar.gz
opie-e83f5b12337c22f365323aa00806b638a971e3a2.tar.bz2
Minor UI tweak - fix double entry in source feed configuration when adding a new feed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/packagemanager/oipkgconfigdlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.cpp b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
index ea0aef0..25052f8 100644
--- a/noncore/settings/packagemanager/oipkgconfigdlg.cpp
+++ b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
@@ -530,33 +530,33 @@ void OIpkgConfigDlg::slotServerUpdate()
530 530
531 // Update list box 531 // Update list box
532 m_serverList->changeItem( newName, m_serverCurrent ); 532 m_serverList->changeItem( newName, m_serverCurrent );
533 } 533 }
534 } 534 }
535 } 535 }
536 else 536 else
537 { 537 {
538 // Add new destination to configuration list 538 // Add new destination to configuration list
539 m_configs->append( new OConfItem( OConfItem::Source, newName, 539 m_configs->append( new OConfItem( OConfItem::Source, newName,
540 m_serverLocation->text(), m_serverActive->isChecked() ) ); 540 m_serverLocation->text(), m_serverActive->isChecked() ) );
541 m_configs->sort(); 541 m_configs->sort();
542 542
543 m_serverList->insertItem( newName ); 543 m_serverList->insertItem( newName );
544 m_serverList->setCurrentItem( m_serverList->count() ); 544 m_serverList->setCurrentItem( m_serverList->count() );
545 m_serverNew = false; 545 m_serverNew = false;
546 m_serverList->insertItem( newName ); 546// m_serverList->insertItem( newName );
547 } 547 }
548} 548}
549 549
550void OIpkgConfigDlg::slotDestEdit( int index ) 550void OIpkgConfigDlg::slotDestEdit( int index )
551{ 551{
552 m_destNew = false; 552 m_destNew = false;
553 m_destCurrent = index; 553 m_destCurrent = index;
554 554
555 // Find selected destination in list 555 // Find selected destination in list
556 OConfItem *destination = findConfItem( OConfItem::Destination, m_destList->currentText() ); 556 OConfItem *destination = findConfItem( OConfItem::Destination, m_destList->currentText() );
557 557
558 // Display destination details 558 // Display destination details
559 if ( destination ) 559 if ( destination )
560 { 560 {
561 m_destCurrName = destination->name(); 561 m_destCurrName = destination->name();
562 m_destName->setText( destination->name() ); 562 m_destName->setText( destination->name() );