From a2b504bdd54abce63cf5ed4b3106b2a5cf257c26 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 24 Feb 2016 15:19:11 +0100 Subject: [PATCH] OK ready for split. --- src/PyConsoleBase/PyConsole_EditorBase.cxx | 4 +++- .../resources/PyConsoleBase_msg_fr.ts | 14 +++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/PyConsoleBase/PyConsole_EditorBase.cxx b/src/PyConsoleBase/PyConsole_EditorBase.cxx index 0fead3321..a8bdd058f 100644 --- a/src/PyConsoleBase/PyConsole_EditorBase.cxx +++ b/src/PyConsoleBase/PyConsole_EditorBase.cxx @@ -1218,9 +1218,9 @@ void PyConsole_EditorBase::startLog() void PyConsole_EditorBase::startLogSlot() { - QString fileName(QFileDialog::getSaveFileName(this,tr("Choose python file where to store log"),QString(),tr("Log files ext (*.log *.txt)"))); while (1) { + QString fileName(QFileDialog::getSaveFileName(this,tr("Choose python file where to store log"),QString(),tr("Log files ext (*.log *.txt)"))); if ( !fileName.isEmpty() ) { if ( startLogImpl( fileName ) ) @@ -1228,6 +1228,8 @@ void PyConsole_EditorBase::startLogSlot() else QMessageBox::warning(this,tr("WARNING"),tr("Log file is not writable")); } + else + break; } } diff --git a/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts b/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts index 574f107bf..ff40a32c5 100644 --- a/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts +++ b/src/PyConsoleBase/resources/PyConsoleBase_msg_fr.ts @@ -40,31 +40,31 @@ PyConsole_EditorBase Choose python file where to store - Choose python file where to store dump + Choisissez un fichier python où sauver le dump Python scripts ext (*.py) - Python scripts (*.py) + Scripts Python (*.py) WARNING - WARNING ! + Attention ! Python file has not been written - Python file has not been written ! + Le fichier Python n'a pas été écrit ! Choose python file where to store log - Choose python file where to store log + Choisissez un fichier python où sauver le log Log files ext (*.log *.txt) - Log files extension (*.log *.txt) + Extensions possible des fichiers log (*.log *.txt) Log file is not writable - Log file is not writable ! + Le fichier log sélectionné n'est pas writable ! -- 2.39.2