-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 12 | ||||
-rw-r--r-- | noncore/settings/aqpkg/opie-aqpkg.control | 2 | ||||
-rw-r--r-- | noncore/settings/aqpkg/package.cpp | 1 | ||||
-rw-r--r-- | noncore/settings/aqpkg/packagewin.cpp | 7 | ||||
-rw-r--r-- | noncore/settings/aqpkg/server.cpp | 13 | ||||
-rw-r--r-- | noncore/settings/sysinfo/modulesinfo.cpp | 6 | ||||
-rw-r--r-- | noncore/settings/sysinfo/opie-sysinfo.control | 2 | ||||
-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 4 |
8 files changed, 34 insertions, 13 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 45a6663..42093cf 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -1003,24 +1003,29 @@ InstallData *MainWindow :: dealWithItem( QCheckListItem *item ) | |||
1003 | QString dest = "root"; | 1003 | QString dest = "root"; |
1004 | if ( !p->isInstalled() ) | 1004 | if ( !p->isInstalled() ) |
1005 | { | 1005 | { |
1006 | InstallData *newitem = new InstallData(); | 1006 | InstallData *newitem = new InstallData(); |
1007 | newitem->option = "I"; | 1007 | newitem->option = "I"; |
1008 | newitem->packageName = name; | 1008 | newitem->packageName = name; |
1009 | return newitem; | 1009 | return newitem; |
1010 | } | 1010 | } |
1011 | else | 1011 | else |
1012 | { | 1012 | { |
1013 | InstallData *newitem = new InstallData(); | 1013 | InstallData *newitem = new InstallData(); |
1014 | newitem->option = "D"; | 1014 | newitem->option = "D"; |
1015 | |||
1016 | // If local file, remove using package name, not filename | ||
1017 | if ( p->isPackageStoredLocally() ) | ||
1018 | name = item->text(); | ||
1019 | |||
1015 | if ( !p->isPackageStoredLocally() ) | 1020 | if ( !p->isPackageStoredLocally() ) |
1016 | newitem->packageName = p->getInstalledPackageName(); | 1021 | newitem->packageName = p->getInstalledPackageName(); |
1017 | else | 1022 | else |
1018 | newitem->packageName = name; | 1023 | newitem->packageName = name; |
1019 | 1024 | ||
1020 | if ( p->getInstalledTo() ) | 1025 | if ( p->getInstalledTo() ) |
1021 | { | 1026 | { |
1022 | newitem->destination = p->getInstalledTo(); | 1027 | newitem->destination = p->getInstalledTo(); |
1023 | } | 1028 | } |
1024 | else | 1029 | else |
1025 | { | 1030 | { |
1026 | newitem->destination = p->getLocalPackage()->getInstalledTo(); | 1031 | newitem->destination = p->getLocalPackage()->getInstalledTo(); |
@@ -1032,24 +1037,28 @@ InstallData *MainWindow :: dealWithItem( QCheckListItem *item ) | |||
1032 | // If the version requested is older and user selected a local ipk file, then reinstall the file | 1037 | // If the version requested is older and user selected a local ipk file, then reinstall the file |
1033 | if ( p->isPackageStoredLocally() && val == -1 ) | 1038 | if ( p->isPackageStoredLocally() && val == -1 ) |
1034 | val = 0; | 1039 | val = 0; |
1035 | 1040 | ||
1036 | if ( val == -2 ) | 1041 | if ( val == -2 ) |
1037 | { | 1042 | { |
1038 | // Error - should handle | 1043 | // Error - should handle |
1039 | } | 1044 | } |
1040 | else if ( val == -1 ) | 1045 | else if ( val == -1 ) |
1041 | { | 1046 | { |
1042 | // Version available is older - remove only | 1047 | // Version available is older - remove only |
1043 | newitem->option = "D"; | 1048 | newitem->option = "D"; |
1049 | |||
1050 | // If local file, remove using package name, not filename | ||
1051 | if ( p->isPackageStoredLocally() ) | ||
1052 | name = item->text(); | ||
1044 | } | 1053 | } |
1045 | else | 1054 | else |
1046 | { | 1055 | { |
1047 | QString caption; | 1056 | QString caption; |
1048 | QString text; | 1057 | QString text; |
1049 | QString secondButton; | 1058 | QString secondButton; |
1050 | QString secondOption; | 1059 | QString secondOption; |
1051 | if ( val == 0 ) | 1060 | if ( val == 0 ) |
1052 | { | 1061 | { |
1053 | // Version available is the same - option to remove or reinstall | 1062 | // Version available is the same - option to remove or reinstall |
1054 | caption = tr( "Do you wish to remove or reinstall\n%1?" ); | 1063 | caption = tr( "Do you wish to remove or reinstall\n%1?" ); |
1055 | text = tr( "Remove or ReInstall" ); | 1064 | text = tr( "Remove or ReInstall" ); |
@@ -1071,24 +1080,27 @@ InstallData *MainWindow :: dealWithItem( QCheckListItem *item ) | |||
1071 | { | 1080 | { |
1072 | QString msgtext; | 1081 | QString msgtext; |
1073 | msgtext = caption.arg( ( const char * )name ); | 1082 | msgtext = caption.arg( ( const char * )name ); |
1074 | QuestionDlg dlg( text, msgtext, secondButton ); | 1083 | QuestionDlg dlg( text, msgtext, secondButton ); |
1075 | switch( dlg.exec() ) | 1084 | switch( dlg.exec() ) |
1076 | { | 1085 | { |
1077 | case 0: // Cancel | 1086 | case 0: // Cancel |
1078 | delete newitem; | 1087 | delete newitem; |
1079 | return 0x0; | 1088 | return 0x0; |
1080 | break; | 1089 | break; |
1081 | case 1: // Remove | 1090 | case 1: // Remove |
1082 | newitem->option = "D"; | 1091 | newitem->option = "D"; |
1092 | // If local file, remove using package name, not filename | ||
1093 | if ( p->isPackageStoredLocally() ) | ||
1094 | name = item->text(); | ||
1083 | break; | 1095 | break; |
1084 | case 2: // Reinstall or Upgrade | 1096 | case 2: // Reinstall or Upgrade |
1085 | newitem->option = secondOption; | 1097 | newitem->option = secondOption; |
1086 | break; | 1098 | break; |
1087 | } | 1099 | } |
1088 | } | 1100 | } |
1089 | else | 1101 | else |
1090 | { | 1102 | { |
1091 | // newitem->option = stickyOption; | 1103 | // newitem->option = stickyOption; |
1092 | } | 1104 | } |
1093 | } | 1105 | } |
1094 | 1106 | ||
diff --git a/noncore/settings/aqpkg/opie-aqpkg.control b/noncore/settings/aqpkg/opie-aqpkg.control index b8ad1e8..46bffdd 100644 --- a/noncore/settings/aqpkg/opie-aqpkg.control +++ b/noncore/settings/aqpkg/opie-aqpkg.control | |||
@@ -1,11 +1,11 @@ | |||
1 | Package: opie-aqpkg | 1 | Package: opie-aqpkg |
2 | Files: bin/aqpkg pics/aqpkg apps/Settings/aqpkg.desktop | 2 | Files: bin/aqpkg pics/aqpkg apps/Settings/aqpkg.desktop |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: Settings | 4 | Section: Settings |
5 | Version: $QPE_VERSION-$SUB_VERSION | ||
6 | Depends: task-opie-minimal | 5 | Depends: task-opie-minimal |
7 | Replaces: aqpkg | 6 | Replaces: aqpkg |
8 | Architecture: arm | 7 | Architecture: arm |
9 | Maintainer: Andy Qua (andy.qua@blueyonder.co.uk) | 8 | Maintainer: Andy Qua (andy.qua@blueyonder.co.uk) |
10 | Description: A Package Manager | 9 | Description: A Package Manager |
11 | 10 | ||
11 | Version: $QPE_VERSION$EXTRAVERSION | ||
diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp index adda832..5a521d3 100644 --- a/noncore/settings/aqpkg/package.cpp +++ b/noncore/settings/aqpkg/package.cpp | |||
@@ -107,24 +107,25 @@ void Package :: setLocalPackage( Package *p ) | |||
107 | localPackage = p; | 107 | localPackage = p; |
108 | 108 | ||
109 | if ( localPackage ) | 109 | if ( localPackage ) |
110 | if ( localPackage->getVersion() < getVersion() && !installed ) | 110 | if ( localPackage->getVersion() < getVersion() && !installed ) |
111 | differentVersionAvailable = true; | 111 | differentVersionAvailable = true; |
112 | else | 112 | else |
113 | differentVersionAvailable = false; | 113 | differentVersionAvailable = false; |
114 | } | 114 | } |
115 | 115 | ||
116 | void Package :: setVersion( const QString &v ) | 116 | void Package :: setVersion( const QString &v ) |
117 | { | 117 | { |
118 | version = v; | 118 | version = v; |
119 | differentVersionAvailable = false; | ||
119 | 120 | ||
120 | if ( localPackage ) | 121 | if ( localPackage ) |
121 | if ( localPackage->getVersion() < getVersion() && !installed ) | 122 | if ( localPackage->getVersion() < getVersion() && !installed ) |
122 | differentVersionAvailable = true; | 123 | differentVersionAvailable = true; |
123 | else | 124 | else |
124 | differentVersionAvailable = false; | 125 | differentVersionAvailable = false; |
125 | } | 126 | } |
126 | 127 | ||
127 | void Package :: setPackageName( const QString &name ) | 128 | void Package :: setPackageName( const QString &name ) |
128 | { | 129 | { |
129 | packageName = name; | 130 | packageName = name; |
130 | } | 131 | } |
diff --git a/noncore/settings/aqpkg/packagewin.cpp b/noncore/settings/aqpkg/packagewin.cpp index 9553cd1..499d647 100644 --- a/noncore/settings/aqpkg/packagewin.cpp +++ b/noncore/settings/aqpkg/packagewin.cpp | |||
@@ -35,29 +35,30 @@ | |||
35 | 35 | ||
36 | #include <qlayout.h> | 36 | #include <qlayout.h> |
37 | #include <qpushbutton.h> | 37 | #include <qpushbutton.h> |
38 | #include <qstring.h> | 38 | #include <qstring.h> |
39 | #include <qtextview.h> | 39 | #include <qtextview.h> |
40 | 40 | ||
41 | PackageWindow::PackageWindow( Package *package, const QString &server ) | 41 | PackageWindow::PackageWindow( Package *package, const QString &server ) |
42 | : QWidget( 0, 0, 0 ) | 42 | : QWidget( 0, 0, 0 ) |
43 | { | 43 | { |
44 | QString str; | 44 | QString str; |
45 | if ( package ) | 45 | if ( package ) |
46 | { | 46 | { |
47 | Package *local = package->getLocalPackage(); | ||
47 | setCaption( package->getPackageName() ); | 48 | setCaption( package->getPackageName() ); |
48 | QString destName; | 49 | QString destName; |
49 | if ( package->getLocalPackage() ) | 50 | if ( local ) |
50 | { | 51 | { |
51 | if ( package->getLocalPackage()->getInstalledTo() ) | 52 | if ( local->getInstalledTo() ) |
52 | destName = package->getLocalPackage()->getInstalledTo()->getDestinationName(); | 53 | destName = package->getLocalPackage()->getInstalledTo()->getDestinationName(); |
53 | } | 54 | } |
54 | else | 55 | else |
55 | { | 56 | { |
56 | if ( package->getInstalledTo() ) | 57 | if ( package->getInstalledTo() ) |
57 | destName = package->getInstalledTo()->getDestinationName(); | 58 | destName = package->getInstalledTo()->getDestinationName(); |
58 | } | 59 | } |
59 | 60 | ||
60 | if ( !package->isPackageStoredLocally() ) | 61 | if ( !package->isPackageStoredLocally() ) |
61 | { | 62 | { |
62 | str.append( tr( "<b>Description</b> - " ) ); | 63 | str.append( tr( "<b>Description</b> - " ) ); |
63 | str.append( package->getDescription() ); | 64 | str.append( package->getDescription() ); |
@@ -77,25 +78,25 @@ PackageWindow::PackageWindow( Package *package, const QString &server ) | |||
77 | str.append( package->getFilename() ); | 78 | str.append( package->getFilename() ); |
78 | } | 79 | } |
79 | 80 | ||
80 | if ( server == LOCAL_SERVER ) | 81 | if ( server == LOCAL_SERVER ) |
81 | { | 82 | { |
82 | str.append( tr( "<p><b>Version Installed</b> - " ) ); | 83 | str.append( tr( "<p><b>Version Installed</b> - " ) ); |
83 | str.append( package->getVersion() ); | 84 | str.append( package->getVersion() ); |
84 | } | 85 | } |
85 | else | 86 | else |
86 | { | 87 | { |
87 | str.append( tr( "<p><b>Version Available</b> - " ) ); | 88 | str.append( tr( "<p><b>Version Available</b> - " ) ); |
88 | str.append( package->getVersion() ); | 89 | str.append( package->getVersion() ); |
89 | if ( package->getLocalPackage() ) | 90 | if ( local ) |
90 | { | 91 | { |
91 | if ( package->isInstalled() ) | 92 | if ( package->isInstalled() ) |
92 | { | 93 | { |
93 | str.append( tr( "<p><b>Version Installed</b> - " ) ); | 94 | str.append( tr( "<p><b>Version Installed</b> - " ) ); |
94 | str.append( package->getInstalledVersion() ); | 95 | str.append( package->getInstalledVersion() ); |
95 | } | 96 | } |
96 | } | 97 | } |
97 | } | 98 | } |
98 | } | 99 | } |
99 | else | 100 | else |
100 | { | 101 | { |
101 | setCaption( tr( "Package Information" ) ); | 102 | setCaption( tr( "Package Information" ) ); |
diff --git a/noncore/settings/aqpkg/server.cpp b/noncore/settings/aqpkg/server.cpp index 4693db1..0282236 100644 --- a/noncore/settings/aqpkg/server.cpp +++ b/noncore/settings/aqpkg/server.cpp | |||
@@ -110,25 +110,25 @@ void Server :: readLocalIpks( Server *local ) | |||
110 | Global::findDocuments( &files, "application/ipkg" ); | 110 | Global::findDocuments( &files, "application/ipkg" ); |
111 | 111 | ||
112 | // Now add the items to the list | 112 | // Now add the items to the list |
113 | QListIterator<DocLnk> it( files.children() ); | 113 | QListIterator<DocLnk> it( files.children() ); |
114 | 114 | ||
115 | for ( ; it.current() ; ++it ) | 115 | for ( ; it.current() ; ++it ) |
116 | { | 116 | { |
117 | // OK, we have a local IPK file, I think the standard naming conventions | 117 | // OK, we have a local IPK file, I think the standard naming conventions |
118 | // for these are packagename_version_arm.ipk | 118 | // for these are packagename_version_arm.ipk |
119 | QString file = (*it)->file(); | 119 | QString file = (*it)->file(); |
120 | 120 | ||
121 | // Changed to display the filename (excluding the path) | 121 | // Changed to display the filename (excluding the path) |
122 | QString packageName = Utils::getFilenameFromIpkFilename( file ); | 122 | QString packageName = Utils::getPackageNameFromIpkFilename( file ); |
123 | QString ver = Utils::getPackageVersionFromIpkFilename( file ); | 123 | QString ver = Utils::getPackageVersionFromIpkFilename( file ); |
124 | Package *package = new Package( packageName ); | 124 | Package *package = new Package( packageName ); |
125 | package->setVersion( ver ); | 125 | package->setVersion( ver ); |
126 | package->setFilename( file ); | 126 | package->setFilename( file ); |
127 | package->setPackageStoredLocally( true ); | 127 | package->setPackageStoredLocally( true ); |
128 | packageList.append( package ); | 128 | packageList.append( package ); |
129 | } | 129 | } |
130 | #else | 130 | #else |
131 | QString names[] = { "advancedfm_0.9.1-20020811_arm.ipk", "libopie_0.9.1-20020811_arm.ipk", "libopieobex_0.9.1-20020811.1_arm.ipk", "opie-addressbook_0.9.1-20020811_arm.ipk" }; | 131 | QString names[] = { "advancedfm_0.9.1-20020811_arm.ipk", "libopie_0.9.1-20020811_arm.ipk", "libopieobex_0.9.1-20020811.1_arm.ipk", "opie-addressbook_0.9.1-20020811_arm.ipk" }; |
132 | for ( int i = 0 ; i < 4 ; ++i ) | 132 | for ( int i = 0 ; i < 4 ; ++i ) |
133 | { | 133 | { |
134 | // OK, we have a local IPK file, I think the standard naming conventions | 134 | // OK, we have a local IPK file, I think the standard naming conventions |
@@ -235,39 +235,50 @@ void Server :: readPackageFile( Server *local, bool clearAll, bool installingToR | |||
235 | } | 235 | } |
236 | 236 | ||
237 | f.close(); | 237 | f.close(); |
238 | 238 | ||
239 | // build local packages | 239 | // build local packages |
240 | buildLocalPackages( local ); | 240 | buildLocalPackages( local ); |
241 | } | 241 | } |
242 | 242 | ||
243 | void Server :: buildLocalPackages( Server *local ) | 243 | void Server :: buildLocalPackages( Server *local ) |
244 | { | 244 | { |
245 | Package *curr; | 245 | Package *curr; |
246 | QListIterator<Package> it( packageList ); | 246 | QListIterator<Package> it( packageList ); |
247 | |||
248 | QList<Package> *locallist = &local->getPackageList(); | ||
249 | |||
247 | for ( ; it.current(); ++it ) | 250 | for ( ; it.current(); ++it ) |
248 | { | 251 | { |
249 | curr = it.current(); | 252 | curr = it.current(); |
250 | QString name = curr->getPackageName(); | 253 | QString name = curr->getPackageName(); |
251 | 254 | ||
252 | // If the package name is an ipk name, then convert the filename to a package name | 255 | // If the package name is an ipk name, then convert the filename to a package name |
253 | if ( name.find( ".ipk" ) != -1 ) | 256 | if ( name.find( ".ipk" ) != -1 ) |
254 | name = Utils::getPackageNameFromIpkFilename( curr->getFilename() ); | 257 | name = Utils::getPackageNameFromIpkFilename( curr->getFilename() ); |
255 | 258 | ||
256 | if ( local ) | 259 | if ( local ) |
257 | { | 260 | { |
258 | Package *p = local->getPackage( name ); | 261 | Package *p = local->getPackage( name ); |
259 | curr->setLocalPackage( p ); | 262 | curr->setLocalPackage( p ); |
260 | if ( p ) | 263 | if ( p ) |
261 | { | 264 | { |
265 | // Replace local version | ||
266 | if ( curr->getVersion() > p->getVersion() ) | ||
267 | { | ||
268 | int pos = locallist->at(); | ||
269 | locallist->remove( p ); | ||
270 | locallist->insert( pos, curr ); | ||
271 | } | ||
272 | |||
262 | // Set some default stuff like size and things | 273 | // Set some default stuff like size and things |
263 | if ( p->getInstalledVersion() == curr->getVersion() ) | 274 | if ( p->getInstalledVersion() == curr->getVersion() ) |
264 | { | 275 | { |
265 | p->setPackageSize( curr->getPackageSize() ); | 276 | p->setPackageSize( curr->getPackageSize() ); |
266 | p->setSection( curr->getSection() ); | 277 | p->setSection( curr->getSection() ); |
267 | p->setDescription( curr->getDescription() ); | 278 | p->setDescription( curr->getDescription() ); |
268 | } | 279 | } |
269 | } | 280 | } |
270 | 281 | ||
271 | } | 282 | } |
272 | else | 283 | else |
273 | curr->setLocalPackage( 0 ); | 284 | curr->setLocalPackage( 0 ); |
diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp index 3d127a8..8def0d6 100644 --- a/noncore/settings/sysinfo/modulesinfo.cpp +++ b/noncore/settings/sysinfo/modulesinfo.cpp | |||
@@ -39,25 +39,25 @@ ModulesInfo::ModulesInfo( QWidget* parent, const char* name, WFlags fl ) | |||
39 | : QWidget( parent, name, fl ) | 39 | : QWidget( parent, name, fl ) |
40 | { | 40 | { |
41 | QGridLayout *layout = new QGridLayout( this ); | 41 | QGridLayout *layout = new QGridLayout( this ); |
42 | layout->setSpacing( 4 ); | 42 | layout->setSpacing( 4 ); |
43 | layout->setMargin( 4 ); | 43 | layout->setMargin( 4 ); |
44 | 44 | ||
45 | ModulesView = new QListView( this ); | 45 | ModulesView = new QListView( this ); |
46 | int colnum = ModulesView->addColumn( tr( "Module" ) ); | 46 | int colnum = ModulesView->addColumn( tr( "Module" ) ); |
47 | colnum = ModulesView->addColumn( tr( "Size" ) ); | 47 | colnum = ModulesView->addColumn( tr( "Size" ) ); |
48 | ModulesView->setColumnAlignment( colnum, Qt::AlignRight ); | 48 | ModulesView->setColumnAlignment( colnum, Qt::AlignRight ); |
49 | colnum = ModulesView->addColumn( tr( "Use#" ) ); | 49 | colnum = ModulesView->addColumn( tr( "Use#" ) ); |
50 | ModulesView->setColumnAlignment( colnum, Qt::AlignRight ); | 50 | ModulesView->setColumnAlignment( colnum, Qt::AlignRight ); |
51 | colnum = ModulesView->addColumn( tr( "Used By" ) ); | 51 | colnum = ModulesView->addColumn( tr( "Used by" ) ); |
52 | ModulesView->setAllColumnsShowFocus( TRUE ); | 52 | ModulesView->setAllColumnsShowFocus( TRUE ); |
53 | layout->addMultiCellWidget( ModulesView, 0, 0, 0, 1 ); | 53 | layout->addMultiCellWidget( ModulesView, 0, 0, 0, 1 ); |
54 | QWhatsThis::add( ModulesView, tr( "This is a list of all the kernel modules currently loaded on this handheld device.\n\nClick and hold on a module to see additional information about the module, or to unload it." ) ); | 54 | QWhatsThis::add( ModulesView, tr( "This is a list of all the kernel modules currently loaded on this handheld device.\n\nClick and hold on a module to see additional information about the module, or to unload it." ) ); |
55 | 55 | ||
56 | // Test if we have /sbin/modinfo, and if so, allow module detail window | 56 | // Test if we have /sbin/modinfo, and if so, allow module detail window |
57 | if ( QFile::exists( "/sbin/modinfo" ) ) | 57 | if ( QFile::exists( "/sbin/modinfo" ) ) |
58 | { | 58 | { |
59 | QPEApplication::setStylusOperation( ModulesView->viewport(), QPEApplication::RightOnHold ); | 59 | QPEApplication::setStylusOperation( ModulesView->viewport(), QPEApplication::RightOnHold ); |
60 | connect( ModulesView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), | 60 | connect( ModulesView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), |
61 | this, SLOT( viewModules( QListViewItem * ) ) ); | 61 | this, SLOT( viewModules( QListViewItem * ) ) ); |
62 | } | 62 | } |
63 | 63 | ||
@@ -132,27 +132,25 @@ void ModulesInfo::updateData() | |||
132 | 132 | ||
133 | fclose( procfile ); | 133 | fclose( procfile ); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | 136 | ||
137 | void ModulesInfo::slotSendClicked() | 137 | void ModulesInfo::slotSendClicked() |
138 | { | 138 | { |
139 | if ( !ModulesView->currentItem() ) | 139 | if ( !ModulesView->currentItem() ) |
140 | { | 140 | { |
141 | return; | 141 | return; |
142 | } | 142 | } |
143 | 143 | ||
144 | QString capstr = tr( "You really want to execute\n" ); | 144 | QString capstr = tr( "You really want to execute %1 for this module?" ).arg( CommandCB->currentText() ); |
145 | capstr.append( CommandCB->currentText() ); | ||
146 | capstr.append( "\nfor this module?" ); | ||
147 | 145 | ||
148 | QString modname = ModulesView->currentItem()->text( 0 ); | 146 | QString modname = ModulesView->currentItem()->text( 0 ); |
149 | 147 | ||
150 | if ( QMessageBox::warning( this, modname, capstr, | 148 | if ( QMessageBox::warning( this, modname, capstr, |
151 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) | 149 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) |
152 | { | 150 | { |
153 | QString command = "/sbin/"; | 151 | QString command = "/sbin/"; |
154 | command.append( CommandCB->currentText() ); | 152 | command.append( CommandCB->currentText() ); |
155 | command.append( " " ); | 153 | command.append( " " ); |
156 | command.append( modname ); | 154 | command.append( modname ); |
157 | 155 | ||
158 | FILE* stream = popen( command, "r" ); | 156 | FILE* stream = popen( command, "r" ); |
diff --git a/noncore/settings/sysinfo/opie-sysinfo.control b/noncore/settings/sysinfo/opie-sysinfo.control index acb51e5..8250174 100644 --- a/noncore/settings/sysinfo/opie-sysinfo.control +++ b/noncore/settings/sysinfo/opie-sysinfo.control | |||
@@ -1,10 +1,10 @@ | |||
1 | Package: opie-sysinfo | 1 | Package: opie-sysinfo |
2 | Files: bin/sysinfo apps/Settings/sysinfo.desktop pics/sysinfo | 2 | Files: bin/sysinfo apps/Settings/sysinfo.desktop pics/sysinfo |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/applications | 4 | Section: opie/applications |
5 | Maintainer: Dan Williams <williamsdr@acm.org> | 5 | Maintainer: Dan Williams <williamsdr@acm.org> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: $QPE_VERSION-$SUB_VERSION | ||
8 | Depends: task-opie-minimal, libopie1 | 7 | Depends: task-opie-minimal, libopie1 |
9 | Description: System Information dialog | 8 | Description: System Information dialog |
10 | For the Opie environment. | 9 | For the Opie environment. |
10 | Version: $QPE_VERSION$EXTRAVERSION | ||
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index 1de1a19..8dec9be 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp | |||
@@ -155,27 +155,25 @@ void ProcessInfo::updateData() | |||
155 | delete proclist; | 155 | delete proclist; |
156 | delete procdir; | 156 | delete procdir; |
157 | } | 157 | } |
158 | 158 | ||
159 | void ProcessInfo::slotSendClicked() | 159 | void ProcessInfo::slotSendClicked() |
160 | { | 160 | { |
161 | QListViewItem *currprocess = ProcessView->currentItem(); | 161 | QListViewItem *currprocess = ProcessView->currentItem(); |
162 | if ( !currprocess ) | 162 | if ( !currprocess ) |
163 | { | 163 | { |
164 | return; | 164 | return; |
165 | } | 165 | } |
166 | 166 | ||
167 | QString capstr = tr( "You really want to send\n" ); | 167 | QString capstr = tr( "You really want to send %1 to this process?" ).arg( SignalCB->currentText() ); |
168 | capstr.append( SignalCB->currentText() ); | ||
169 | capstr.append( "\nto this process?" ); | ||
170 | 168 | ||
171 | 169 | ||
172 | if ( QMessageBox::warning( this, currprocess->text( 1 ), capstr, | 170 | if ( QMessageBox::warning( this, currprocess->text( 1 ), capstr, |
173 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) | 171 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) |
174 | { | 172 | { |
175 | currprocess = ProcessView->currentItem(); | 173 | currprocess = ProcessView->currentItem(); |
176 | if ( currprocess ) | 174 | if ( currprocess ) |
177 | { | 175 | { |
178 | QString sigstr = SignalCB->currentText(); | 176 | QString sigstr = SignalCB->currentText(); |
179 | sigstr.truncate(2); | 177 | sigstr.truncate(2); |
180 | int sigid = sigstr.toUInt(); | 178 | int sigid = sigstr.toUInt(); |
181 | kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid ); | 179 | kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid ); |