-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index 8dec9be..709158d 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp | |||
@@ -143,49 +143,49 @@ void ProcessInfo::updateData() | |||
143 | 143 | ||
144 | newitem = new QListViewItem( ProcessView, processnum, processcmd, processstatus, processtime ); | 144 | newitem = new QListViewItem( ProcessView, processnum, processcmd, processstatus, processtime ); |
145 | if ( processnum == selectedpid ) | 145 | if ( processnum == selectedpid ) |
146 | { | 146 | { |
147 | selecteditem = newitem; | 147 | selecteditem = newitem; |
148 | } | 148 | } |
149 | } | 149 | } |
150 | } | 150 | } |
151 | } | 151 | } |
152 | ProcessView->setCurrentItem( selecteditem ); | 152 | ProcessView->setCurrentItem( selecteditem ); |
153 | } | 153 | } |
154 | 154 | ||
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 %1 to this process?" ).arg( SignalCB->currentText() ); | 167 | QString capstr = tr( "Really want to send %1\nto this process?" ).arg( SignalCB->currentText() ); |
168 | 168 | ||
169 | 169 | ||
170 | if ( QMessageBox::warning( this, currprocess->text( 1 ), capstr, | 170 | if ( QMessageBox::warning( this, currprocess->text( 1 ), capstr, |
171 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) | 171 | QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) |
172 | { | 172 | { |
173 | currprocess = ProcessView->currentItem(); | 173 | currprocess = ProcessView->currentItem(); |
174 | if ( currprocess ) | 174 | if ( currprocess ) |
175 | { | 175 | { |
176 | QString sigstr = SignalCB->currentText(); | 176 | QString sigstr = SignalCB->currentText(); |
177 | sigstr.truncate(2); | 177 | sigstr.truncate(2); |
178 | int sigid = sigstr.toUInt(); | 178 | int sigid = sigstr.toUInt(); |
179 | kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid ); | 179 | kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid ); |
180 | } | 180 | } |
181 | } | 181 | } |
182 | 182 | ||
183 | } | 183 | } |
184 | 184 | ||
185 | void ProcessInfo::viewProcess( QListViewItem *process ) | 185 | void ProcessInfo::viewProcess( QListViewItem *process ) |
186 | { | 186 | { |
187 | QString pid= process->text( 0 ).stripWhiteSpace(); | 187 | QString pid= process->text( 0 ).stripWhiteSpace(); |
188 | QString command = process->text( 1 ); | 188 | QString command = process->text( 1 ); |
189 | ProcessDtl->setCaption( pid + " - " + command ); | 189 | ProcessDtl->setCaption( pid + " - " + command ); |
190 | FILE *statfile = fopen( ( QString ) ( "/proc/" + pid + "/status"), "r"); | 190 | FILE *statfile = fopen( ( QString ) ( "/proc/" + pid + "/status"), "r"); |
191 | if ( statfile ) | 191 | if ( statfile ) |