summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/package.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/aqpkg/package.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/package.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp
index 48b6934..fd75450 100644
--- a/noncore/settings/aqpkg/package.cpp
+++ b/noncore/settings/aqpkg/package.cpp
@@ -27,2 +27,4 @@ Package::Package( QString &name )
installedToRoot = false;
+ installed = false;
+ installedTo = 0;
}
@@ -33,2 +35,7 @@ Package::Package( char *name )
localPackage = 0;
+ installed = false;
+ packageStoredLocally = false;
+ installedToRoot = false;
+ installed = false;
+ installedTo = 0;
}
@@ -105,2 +112,10 @@ QString Package :: getInstalledVersion()
+QString Package :: getInstalledPackageName()
+{
+ if ( localPackage )
+ return localPackage->getPackageName();
+ else
+ return getPackageName();
+}
+
bool Package :: isInstalled()