summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/pksettings.cpp
authortille <tille>2002-05-12 12:07:14 (UTC)
committer tille <tille>2002-05-12 12:07:14 (UTC)
commit06e723cc7942af2691828e7fdc6a6ec47b44edab (patch) (side-by-side diff)
treef96bd547911c4fdc2aa8db95bd6175ebae02b027 /noncore/unsupported/oipkg/pksettings.cpp
parent026a99ad2360a9abc2964cbdc3b71b49adcd66e6 (diff)
downloadopie-06e723cc7942af2691828e7fdc6a6ec47b44edab.zip
opie-06e723cc7942af2691828e7fdc6a6ec47b44edab.tar.gz
opie-06e723cc7942af2691828e7fdc6a6ec47b44edab.tar.bz2
fixed crash when remove dest
Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pksettings.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp
index 24c7beb..09975b0 100644
--- a/noncore/unsupported/oipkg/pksettings.cpp
+++ b/noncore/unsupported/oipkg/pksettings.cpp
@@ -169,12 +169,13 @@ void PackageManagerSettings::removeDestination()
{
disconnect( destinationname, SIGNAL(textChanged(const QString&)), this, SLOT(destNameChanged(const QString&)) );
disconnect( destinationurl, SIGNAL(textChanged(const QString&)), this, SLOT(destUrlChanged(const QString&)) );
- destinationname->setText(destinations->text(editedserver));
- destinationurl->setText(*destinationurlDic[editedserver]);
+ destinationname->setText("");
+ destinationurl->setText("");
disconnect( destinations, SIGNAL(highlighted(int)), this, SLOT(editDestination(int)) );
destinations->removeItem(editeddestination);
activeDestination->removeItem(editeddestination);
activeLinkDestination->removeItem(editeddestination);
+ editeddestination=0;
connect( destinations, SIGNAL(highlighted(int)), this, SLOT(editDestination(int)) );
destinationname->setEnabled(FALSE);
destinationurl->setEnabled(FALSE);
@@ -354,6 +355,7 @@ bool PackageManagerSettings::readIpkgConfig(const QString& conffile)
QTextStream s(&conf);
servers->clear();
activeServers->clear();
+ destinations->clear();
activeDestination->clear();
activeLinkDestination->clear();
serverurlDic.clear();