From 30b26ed0dbbbee829f16ab8ea1e531b89938232d Mon Sep 17 00:00:00 2001 From: andyq Date: Thu, 17 Oct 2002 23:24:27 +0000 Subject: Fixed bug which caused links to be recreated even if same version of package was reinstalled --- (limited to 'noncore/settings') diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp index bbb0be75..e122064 100644 --- a/noncore/settings/aqpkg/installdlgimpl.cpp +++ b/noncore/settings/aqpkg/installdlgimpl.cpp @@ -170,9 +170,9 @@ void InstallDlgImpl :: installSelected() Destination *d = dataMgr->getDestination( destination->currentText() ); QString dest = d->getDestinationName(); QString destDir = d->getDestinationPath(); - int instFlags = 0; + int instFlags = flags; if ( d->linkToRoot() ) - instFlags = MAKE_LINKS; + instFlags |= MAKE_LINKS; #ifdef QWS // Save settings @@ -193,8 +193,6 @@ void InstallDlgImpl :: installSelected() int tmpFlags = flags; if ( it->destination->linkToRoot() ) tmpFlags |= MAKE_LINKS; - else - tmpFlags ^= MAKE_LINKS; ipkg.setFlags( tmpFlags ); ipkg.runIpkg(); @@ -221,8 +219,6 @@ void InstallDlgImpl :: installSelected() int tmpFlags = flags; if ( it->destination->linkToRoot() && it->recreateLinks ) tmpFlags |= MAKE_LINKS; - else - tmpFlags ^= MAKE_LINKS; ipkg.setFlags( tmpFlags ); ipkg.runIpkg(); } -- cgit v0.9.0.2