-rw-r--r-- | noncore/unsupported/oipkg/package.cpp | 24 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/package.h | 3 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/packagelist.cpp | 1 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/packagelistitem.cpp | 1 |
4 files changed, 21 insertions, 8 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp index e020601..190b3fb 100644 --- a/noncore/unsupported/oipkg/package.cpp +++ b/noncore/unsupported/oipkg/package.cpp | |||
@@ -21,22 +21,29 @@ | |||
21 | OipkgPackage::OipkgPackage( QObject *parent, const char *name ) | 21 | OipkgPackage::OipkgPackage( QObject *parent, const char *name ) |
22 | : QObject(parent,name) | 22 | : QObject(parent,name) |
23 | { | 23 | { |
24 | 24 | init(); | |
25 | } | 25 | } |
26 | 26 | ||
27 | OipkgPackage::~OipkgPackage() | 27 | OipkgPackage::~OipkgPackage() |
28 | { | 28 | { |
29 | |||
29 | } | 30 | } |
30 | 31 | ||
31 | OipkgPackage::OipkgPackage( PackageManagerSettings *s, QObject *parent, const char *name ) | 32 | OipkgPackage::OipkgPackage( PackageManagerSettings *s, QObject *parent, const char *name ) |
32 | : QObject(parent,name) | 33 | : QObject(parent,name) |
33 | { | 34 | { |
34 | init(s); | 35 | settings = s; |
36 | init(); | ||
35 | } | 37 | } |
36 | 38 | ||
37 | void OipkgPackage::init( PackageManagerSettings *s ) | 39 | // void OipkgPackage::init( PackageManagerSettings *s ) |
40 | // { | ||
41 | // settings = s; | ||
42 | // init(); | ||
43 | // } | ||
44 | |||
45 | void OipkgPackage::init( ) | ||
38 | { | 46 | { |
39 | settings = s; | ||
40 | _size = ""; | 47 | _size = ""; |
41 | _section = ""; | 48 | _section = ""; |
42 | _subsection = ""; | 49 | _subsection = ""; |
@@ -56,14 +63,16 @@ void OipkgPackage::init( PackageManagerSettings *s ) | |||
56 | OipkgPackage::OipkgPackage( QStringList pack, PackageManagerSettings *s , QObject *parent, const char *name ) | 63 | OipkgPackage::OipkgPackage( QStringList pack, PackageManagerSettings *s , QObject *parent, const char *name ) |
57 | : QObject(parent,name) | 64 | : QObject(parent,name) |
58 | { | 65 | { |
59 | init(s); | 66 | settings = s; |
67 | init(); | ||
60 | parsePackage( pack ); | 68 | parsePackage( pack ); |
61 | } | 69 | } |
62 | 70 | ||
63 | OipkgPackage::OipkgPackage( QString n, PackageManagerSettings *s, QObject *parent, const char *name ) | 71 | OipkgPackage::OipkgPackage( QString n, PackageManagerSettings *s, QObject *parent, const char *name ) |
64 | : QObject(parent,name) | 72 | : QObject(parent,name) |
65 | { | 73 | { |
66 | init(s); | 74 | settings = s; |
75 | init(); | ||
67 | if ( !QFile::exists( n ) ) | 76 | if ( !QFile::exists( n ) ) |
68 | { | 77 | { |
69 | _name = QString( n ); | 78 | _name = QString( n ); |
@@ -78,7 +87,8 @@ OipkgPackage::OipkgPackage( QString n, PackageManagerSettings *s, QObject *paren | |||
78 | OipkgPackage::OipkgPackage( OipkgPackage *pi, QObject *parent, const char *name ) | 87 | OipkgPackage::OipkgPackage( OipkgPackage *pi, QObject *parent, const char *name ) |
79 | : QObject(parent,name) | 88 | : QObject(parent,name) |
80 | { | 89 | { |
81 | init(pi->settings); | 90 | settings = pi->settings; |
91 | init(); | ||
82 | copyValues( pi ); | 92 | copyValues( pi ); |
83 | } | 93 | } |
84 | 94 | ||
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h index 2334c31..02d8eff 100644 --- a/noncore/unsupported/oipkg/package.h +++ b/noncore/unsupported/oipkg/package.h | |||
@@ -93,7 +93,8 @@ private: | |||
93 | QDict<OipkgPackage> *_versions; | 93 | QDict<OipkgPackage> *_versions; |
94 | bool _useFileName; | 94 | bool _useFileName; |
95 | void parsePackage( QStringList ); | 95 | void parsePackage( QStringList ); |
96 | void init(PackageManagerSettings *); | 96 | void init(); |
97 | // void init(PackageManagerSettings*); | ||
97 | }; | 98 | }; |
98 | 99 | ||
99 | 100 | ||
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp index 5f79ec1..6f0b56f 100644 --- a/noncore/unsupported/oipkg/packagelist.cpp +++ b/noncore/unsupported/oipkg/packagelist.cpp | |||
@@ -206,6 +206,7 @@ void PackageList::readFileEntries( QString filename, QString dest ) | |||
206 | } | 206 | } |
207 | } | 207 | } |
208 | delete statusStream; | 208 | delete statusStream; |
209 | f.close(); | ||
209 | return; | 210 | return; |
210 | } | 211 | } |
211 | 212 | ||
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp index 51d024b..1610a37 100644 --- a/noncore/unsupported/oipkg/packagelistitem.cpp +++ b/noncore/unsupported/oipkg/packagelistitem.cpp | |||
@@ -50,6 +50,7 @@ PackageListItem::~PackageListItem() | |||
50 | 50 | ||
51 | void PackageListItem::init( OipkgPackage *pi, PackageManagerSettings *s) | 51 | void PackageListItem::init( OipkgPackage *pi, PackageManagerSettings *s) |
52 | { | 52 | { |
53 | //waring pass something different than 0 | ||
53 | popupMenu = new QPopupMenu( 0 ); | 54 | popupMenu = new QPopupMenu( 0 ); |
54 | destsMenu = new QPopupMenu( 0 ); | 55 | destsMenu = new QPopupMenu( 0 ); |
55 | package = pi; | 56 | package = pi; |