forked from qt-creator/qt-creator
Perforce/Subversion: Display diff/annotation with correct encoding.
This commit is contained in:
@@ -884,8 +884,7 @@ Core::IEditor * PerforcePlugin::showOutputInEditor(const QString& title, const Q
|
|||||||
if (Perforce::Constants::debug)
|
if (Perforce::Constants::debug)
|
||||||
qDebug() << "PerforcePlugin::showOutputInEditor" << title << kind << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec);
|
qDebug() << "PerforcePlugin::showOutputInEditor" << title << kind << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec);
|
||||||
QString s = title;
|
QString s = title;
|
||||||
Core::IEditor *editor = Core::EditorManager::instance()->
|
Core::IEditor *editor = Core::EditorManager::instance()->newFile(kind, &s, output);
|
||||||
newFile(kind, &s, output.toLocal8Bit());
|
|
||||||
PerforceEditor *e = qobject_cast<PerforceEditor*>(editor->widget());
|
PerforceEditor *e = qobject_cast<PerforceEditor*>(editor->widget());
|
||||||
if (!e)
|
if (!e)
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -979,7 +979,7 @@ Core::IEditor * SubversionPlugin::showOutputInEditor(const QString& title, const
|
|||||||
if (Subversion::Constants::debug)
|
if (Subversion::Constants::debug)
|
||||||
qDebug() << "SubversionPlugin::showOutputInEditor" << title << kind << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec);
|
qDebug() << "SubversionPlugin::showOutputInEditor" << title << kind << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec);
|
||||||
QString s = title;
|
QString s = title;
|
||||||
Core::IEditor *editor = Core::EditorManager::instance()->newFile(kind, &s, output.toLocal8Bit());
|
Core::IEditor *editor = Core::EditorManager::instance()->newFile(kind, &s, output);
|
||||||
SubversionEditor *e = qobject_cast<SubversionEditor*>(editor->widget());
|
SubversionEditor *e = qobject_cast<SubversionEditor*>(editor->widget());
|
||||||
if (!e)
|
if (!e)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user