Second part of prior commit

pull/1/head
Timothy Pearson 13 years ago
parent 3d34730e21
commit 96c0a54f74

@ -392,10 +392,12 @@ void LDAPConfig::deactivateRealm() {
TQString readFullLineFromPtyProcess(PtyProcess* proc) { TQString readFullLineFromPtyProcess(PtyProcess* proc) {
TQString result = ""; TQString result = "";
while ((!result.contains("\n")) && (!result.contains(":")) && (!result.contains(">"))) { while ((!result.contains("\r")) && (!result.contains(":")) && (!result.contains(">"))) {
result = result + TQString(proc->readLine(false)); result = result + TQString(proc->readLine(false));
tqApp->processEvents(); tqApp->processEvents();
} }
result.replace("\n", "");
result.replace("\r", "");
return result; return result;
} }

Loading…
Cancel
Save