summaryrefslogtreecommitdiff
authordrw <drw>2003-02-01 02:15:18 (UTC)
committer drw <drw>2003-02-01 02:15:18 (UTC)
commit953cb6d9cb9da2829db8364bcfb4ff8af0b0ae26 (patch) (side-by-side diff)
tree12bf039826f1d2106d446677f1bedd28d77e227b
parent766f09a89eef17808e77836f76371aab8ebc4c1c (diff)
downloadopie-953cb6d9cb9da2829db8364bcfb4ff8af0b0ae26.zip
opie-953cb6d9cb9da2829db8364bcfb4ff8af0b0ae26.tar.gz
opie-953cb6d9cb9da2829db8364bcfb4ff8af0b0ae26.tar.bz2
Fix display problem after killing a process
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/processinfo.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp
index 9a5446a..769410f 100644
--- a/noncore/settings/sysinfo/processinfo.cpp
+++ b/noncore/settings/sysinfo/processinfo.cpp
@@ -148,36 +148,33 @@ void ProcessInfo::slotSendClicked()
if ( !currprocess )
{
return;
}
QString capstr = tr( "You really want to send\n" );
capstr.append( SignalCB->currentText() );
capstr.append( "\nto this process?" );
if ( QMessageBox::warning( this, currprocess->text( 1 ), capstr,
QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes )
{
QString sigstr = SignalCB->currentText();
sigstr.truncate(2);
int sigid = sigstr.toUInt();
- if ( kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid ) == 0 )
- {
- hide();
- }
+ kill( currprocess->text( 0 ).stripWhiteSpace().toUInt(), sigid );
}
}
void ProcessInfo::viewProcess( QListViewItem *process )
{
QString pid= process->text( 0 ).stripWhiteSpace();
QString command = process->text( 1 );
ProcessDtl->setCaption( pid + " - " + command );
FILE *statfile = fopen( ( QString ) ( "/proc/" + pid + "/status"), "r");
if ( statfile )
{
char line[81];
fgets( line, 81, statfile );
ProcessDtl->detailView->setText( line );
while ( fgets( line, 81, statfile ) )