Commit e2e41dd2 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Remove debug lines

parent 3dddf613
......@@ -138,8 +138,6 @@ void Login::on_config_nb_currentIndexChanged(int index)
{
int idConfig = index + 1;
QFile idFile (confDir + ".id." + QString::number(idConfig));
qDebug() << index;
qDebug() << idFile.fileName();
if (idFile.exists())
{
idFile.open(QFile::ReadOnly);
......
......@@ -128,7 +128,6 @@ void OpenDistant::handle_result(HttpRequestWorker *worker) {
this->exec();
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......
......@@ -1679,7 +1679,6 @@ void QRecipeWriter::received_categories(HttpRequestWorker *worker) {
QTimer::singleShot(4000, this, SLOT(refreshState()));
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......@@ -2495,7 +2494,6 @@ void QRecipeWriter::received_recipe_wp(HttpRequestWorker *worker) {
}
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......@@ -2521,7 +2519,6 @@ void QRecipeWriter::received_recipe(HttpRequestWorker *worker) {
}
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......
......@@ -268,7 +268,6 @@ void SendPyWebCooking::handle_result(HttpRequestWorker *worker) {
if (rep == QMessageBox::Yes)
{
QString program = "\"" + cmdNav + "\" " + "http://" + map["url"].toString();
qDebug() << program;
QProcess *myProcess = new QProcess();
myProcess->setProcessChannelMode(QProcess::MergedChannels);
myProcess->start(program);
......@@ -286,7 +285,6 @@ void SendPyWebCooking::handle_result(HttpRequestWorker *worker) {
}
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......
......@@ -93,7 +93,6 @@ void SendWordpress::handle_result(HttpRequestWorker *worker) {
}
}
else {
qDebug() << worker->response;
qCritical() << "Error while parsing JSON: " + error->errorString();
QMessageBox::critical((QWidget*)this->parent(), tr("Une erreur est survenue"), tr("Impossible de lire la réponse du serveur. Merci de rapporter le bug."));
}
......
......@@ -67,7 +67,7 @@ SpellChecker::SpellChecker(const QString &dictionaryPath, const QString &userDic
for(QString line = stream.readLine(); !line.isEmpty(); line = stream.readLine()) {
if (enc_detector.indexIn(line) > -1) {
_encoding = enc_detector.cap(1);
qDebug() << QString("Encoding set to ") + _encoding;
qInfo() << QString("Encoding set to ") + _encoding;
break;
}
}
......@@ -86,7 +86,7 @@ SpellChecker::SpellChecker(const QString &dictionaryPath, const QString &userDic
qWarning() << "User dictionary in " << _userDictionary << "could not be opened";
}
} else {
qDebug() << "User dictionary not set.";
qWarning() << "User dictionary not set.";
}
}
......@@ -144,6 +144,6 @@ void SpellChecker::addToUserWordlist(const QString &word)
qWarning() << "User dictionary in " << _userDictionary << "could not be opened for appending a new word";
}
} else {
qDebug() << "User dictionary not set.";
qWarning() << "User dictionary not set.";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment