forked from qt-creator/qt-creator
SVN: Save description as utf-8 string
We tell SVN that the file is utf-8, so we need to make sure we save it as such. Task-number: QTCREATORBUG-13979 Change-Id: I49edf477bf80c6b21cd99bc86fbd2555d7181a0b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include "subversionsubmiteditor.h"
|
||||
|
||||
#include <coreplugin/idocument.h>
|
||||
@@ -56,3 +55,14 @@ void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &statusOu
|
||||
// checkScriptWorkingDirectory property is fine (at this point it was set by SubversionPlugin)
|
||||
setFileModel(model, this->checkScriptWorkingDirectory());
|
||||
}
|
||||
|
||||
QByteArray SubversionSubmitEditor::fileContents() const
|
||||
{
|
||||
return description().toUtf8();
|
||||
}
|
||||
|
||||
bool SubversionSubmitEditor::setFileContents(const QByteArray &contents)
|
||||
{
|
||||
setDescription(QString::fromUtf8(contents));
|
||||
return true;
|
||||
}
|
||||
|
@@ -50,6 +50,9 @@ public:
|
||||
typedef QPair<QString, QString> StatusFilePair;
|
||||
|
||||
void setStatusList(const QList<StatusFilePair> &statusOutput);
|
||||
|
||||
QByteArray fileContents() const;
|
||||
bool setFileContents(const QByteArray &contents);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
Reference in New Issue
Block a user