[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/lib/widgets
From:       Matt Rogers <mattr () kde ! org>
Date:       2004-12-16 4:33:33
Message-ID: 20041216043333.4ED891BB42 () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

Show the fact that we've aborted with a segmentation fault on run. Fixes
bug 23176

BUG: 23176


  M +7 -4      processwidget.cpp   1.21


--- kdevelop/lib/widgets/processwidget.cpp  #1.20:1.21
@@ -60,10 +60,6 @@ ProcessWidget::ProcessWidget(QWidget *pa
     setPalette(pal);
 
-#if (KDE_VERSION > 305)
     childproc = new KProcess();
     childproc->setUseShell(true);
-#else
-    childproc = new KShellProcess();
-#endif
 
     procLineMaker = new ProcessLineMaker( childproc );
@@ -156,5 +152,12 @@ void ProcessWidget::childFinished(bool n
         }
     } else {
+      if ( childproc->signalled() && childproc->exitSignal() == SIGSEGV )
+      {
+        s = i18n("*** Process aborted. Segmentation fault ***");
+      }
+      else
+      {
         s = i18n("*** Process aborted ***");
+      }
         t = ProcessListBoxItem::Error;
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic