From 7f75020e00a2e3189020e9efd2e1279263792107 Mon Sep 17 00:00:00 2001 From: kh1 Date: Fri, 1 Jul 2011 12:09:32 +0200 Subject: Keep the updater application as class member. I can't see any reason to be able to set it from the outside, thus it makes no sense to have that functionality at all. To be able to work properly the app had to be set, but could be easily forgotten, leading to a crash later on. Re-parsing should be removed as well, will do it next. --- installerbuilder/installerbase/installerbase.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'installerbuilder/installerbase/installerbase.cpp') diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp index 7e885d79e..666b1e9fe 100644 --- a/installerbuilder/installerbase/installerbase.cpp +++ b/installerbuilder/installerbase/installerbase.cpp @@ -53,9 +53,6 @@ #include -#include -#include - #include #include @@ -264,17 +261,6 @@ int main(int argc, char *argv[]) } } - - KDUpdater::Application updaterapp; - const QString &productName = core.value(QLatin1String("ProductName")); - updaterapp.packagesInfo()->setApplicationName(productName); - updaterapp.packagesInfo()->setApplicationVersion(core.value(QLatin1String("ProductVersion"))); - if (content.magicmaker() == MagicInstallerMarker) { - updaterapp.addUpdateSource(productName, productName, QString(), - QUrl(QLatin1String("resource://metadata/")), 0); - } - core.setUpdaterApplication(&updaterapp); - // Create the wizard gui TabController controller(0); controller.setManager(&core); -- cgit v1.2.3