[devel] kdenonbeta/kdedebian/kalternatives/src
Mario Bensi <[email protected]> Thu, 14 Oct 2004 14:17:34 +0200 (CEST)
| Newsgroups | gmane.comp.kde.devel.debian |
|---|---|
| Message-ID | <20041014121734.655E016D4F__12440.1861023673$1097756344$gmane$org@office.kde.org> |
CVS commit by bensi:
bugfix
M +5 -6 altitemelement.cpp 1.16
--- kdenonbeta/kdedebian/kalternatives/src/altitemelement.cpp #1.15:1.16
@@ -65,6 +65,6 @@ void AltItemElement::searchDescription()
connect(procdesc, SIGNAL(receivedStdout(KProcess *, char *, int)), this,
SLOT(slotGetDescription(KProcess *, char *, int)));
- connect(procdesc, SIGNAL( receivedStderr(KProcess *, char *, int) ), this,
- SLOT(slotGetDescription(KProcess *, char *, int)));
+ //connect(procdesc, SIGNAL( receivedStderr(KProcess *, char *, int) ), this,
+ // SLOT(slotGetDescription(KProcess *, char *, int)));
connect(procdesc, SIGNAL( processExited(KProcess *)), this,
SLOT(slotDescriptionTermined(KProcess *)));
@@ -74,10 +74,9 @@ void AltItemElement::searchDescription()
-void AltItemElement::slotDescriptionTermined(KProcess *)
+void AltItemElement::slotDescriptionTermined(KProcess *proc)
{
- int pos = m_desc.findRev(i18n("nothing appropriate"));
- if (pos == -1)
+ if (!proc->exitStatus())
{
- pos = m_desc.find("\n");
+ int pos = m_desc.find("\n");
if (pos != -1)
{