author | drw <drw> | 2004-11-16 17:52:25 (UTC) |
---|---|---|
committer | drw <drw> | 2004-11-16 17:52:25 (UTC) |
commit | e83f5b12337c22f365323aa00806b638a971e3a2 (patch) (side-by-side diff) | |
tree | fc9c4a34ffc7c2400ccd373f6947626cded6075f | |
parent | 3ba09273d96a32263bb22bfbc32fcc6290bde6e8 (diff) | |
download | opie-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
-rw-r--r-- | noncore/settings/packagemanager/oipkgconfigdlg.cpp | 2 |
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 @@ -522,49 +522,49 @@ void OIpkgConfigDlg::slotServerUpdate() server->setValue( m_serverLocation->text() ); server->setActive( m_serverActive->isChecked() ); // Check if server name has changed, if it has then we need to replace the key in the map if ( m_serverCurrName != newName ) { // Update server name server->setName( newName ); // Update list box m_serverList->changeItem( newName, m_serverCurrent ); } } } else { // Add new destination to configuration list m_configs->append( new OConfItem( OConfItem::Source, newName, m_serverLocation->text(), m_serverActive->isChecked() ) ); m_configs->sort(); m_serverList->insertItem( newName ); m_serverList->setCurrentItem( m_serverList->count() ); m_serverNew = false; - m_serverList->insertItem( newName ); +// m_serverList->insertItem( newName ); } } void OIpkgConfigDlg::slotDestEdit( int index ) { m_destNew = false; m_destCurrent = index; // Find selected destination in list OConfItem *destination = findConfItem( OConfItem::Destination, m_destList->currentText() ); // Display destination details if ( destination ) { m_destCurrName = destination->name(); m_destName->setText( destination->name() ); m_destLocation->setText( destination->value() ); m_destActive->setChecked( destination->active() ); m_destName->setFocus(); } } void OIpkgConfigDlg::slotDestNew() { |