summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp8
1 files changed, 2 insertions, 6 deletions
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
@@ -169,11 +169,11 @@ void InstallDlgImpl :: installSelected()
output->setText( "" );
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
Config cfg( "aqpkg" );
@@ -192,10 +192,8 @@ void InstallDlgImpl :: installSelected()
int tmpFlags = flags;
if ( it->destination->linkToRoot() )
tmpFlags |= MAKE_LINKS;
- else
- tmpFlags ^= MAKE_LINKS;
ipkg.setFlags( tmpFlags );
ipkg.runIpkg();
}
@@ -220,10 +218,8 @@ void InstallDlgImpl :: installSelected()
int tmpFlags = flags;
if ( it->destination->linkToRoot() && it->recreateLinks )
tmpFlags |= MAKE_LINKS;
- else
- tmpFlags ^= MAKE_LINKS;
ipkg.setFlags( tmpFlags );
ipkg.runIpkg();
}
}