From b07ad963df5a79217061144bdea1ef7fc27956dc Mon Sep 17 00:00:00 2001 From: Aleksandar Sasha Babic Date: Mon, 6 Jul 2009 17:59:46 +0200 Subject: Commenting some debug printf(...). --- examples/network/ftp/sym_iap_util.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h index ebb5402..06d9482 100644 --- a/examples/network/ftp/sym_iap_util.h +++ b/examples/network/ftp/sym_iap_util.h @@ -188,8 +188,10 @@ static QString qt_OfferIapDialog() { QString strIapName((char*)iapName.Ptr()); int error = 0; - if(!qt_SetDefaultIapName(strIapName, error)) - printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + if(!qt_SetDefaultIapName(strIapName, error)) { + //printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + strIapName = QString(""); + } CleanupStack::PopAndDestroy(&connection); CleanupStack::PopAndDestroy(&socketServ); @@ -236,8 +238,10 @@ static QString qt_CheckForActiveConnection() { // } strIapName = QString((char*)iapName.Ptr()); int error = 0; - if(!qt_SetDefaultIapName(strIapName, error)) - printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + if(!qt_SetDefaultIapName(strIapName, error)) { + //printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + strIapName = QString(""); + } CleanupStack::PopAndDestroy(&tempConn); break; @@ -260,12 +264,13 @@ static QString qt_CheckSettingsForConnection(QStringList& iapNames) { QString strIapName = iapNames.at(index); int error = 0; if(!qt_SetDefaultIapName(strIapName, error)) { - printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + //printf("failed setdefaultif @ %i with %s and errno = %d \n", __LINE__, strIapName.toUtf8().data(), error); + strIapName = QString(""); } else { return strIapName; } } - return QString(""); + return strIapName; } static void qt_SetDefaultIapL() -- cgit v0.12