summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexdialog.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/manager/obexdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/obexdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/obexdialog.cpp b/noncore/net/opietooth/manager/obexdialog.cpp
index d3fdd14..8d7b593 100644
--- a/noncore/net/opietooth/manager/obexdialog.cpp
+++ b/noncore/net/opietooth/manager/obexdialog.cpp
@@ -88,50 +88,50 @@ void ObexDialog::browse() {
QString str = OFileDialog::getOpenFileName( 1,"/","", types, 0 );
cmdLine->setText( str );
statLine->setText( tr("Ready") );
}
void ObexDialog::sendData() {
QString fileURL = cmdLine->text();
QString file = QFileInfo( fileURL ).fileName();
QString modifiedName = chNameLine->text();
QString execName = "ussp-push";
if (obexSend->isRunning())
return;
obexSend->clearArguments();
// vom popupmenu beziehen
if ( !modifiedName.isEmpty() ) {
*obexSend << execName << "--timeo 30" << m_device << fileURL << modifiedName;
} else {
*obexSend << execName << "--timeo 30" << m_device << fileURL << file;
}
obexSend->setUseShell(true);
if (!obexSend->start(OProcess::NotifyOnExit, OProcess::All) ) {
statLine->setText( tr("Error: couln't start process") );
}
- else
- statLine->setText( tr("Sending") );
+ else
+ statLine->setText( tr("Sending") );
}
void ObexDialog::slotPushOut(OProcess*, char* buf, int len) {
QCString str(buf, len);
status->append(str);
}
void ObexDialog::slotPushErr(OProcess*, char* buf, int len) {
QCString str(buf, len);
status->append(str);
}
void ObexDialog::slotProcessExited(OProcess*) {
if (obexSend == NULL)
return;
if (obexSend->normalExit()) {
status->append( tr("Finished with result ") );
status->append( QString::number(obexSend->exitStatus()) );
status->append( tr("\n") );
odebug << obexSend->exitStatus() << oendl;
statLine->setText( tr("Finished: ") + tr(strerror(obexSend->exitStatus())) );
}
else {
status->append( tr("Exited abnormally\n") );