Commit 20cf9add authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

Perforce: Fix compile



Change-Id: Ief5ba86354a9c657fc9676bf6693fe4a11f543c5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent af803b60
...@@ -1188,7 +1188,7 @@ IEditor *PerforcePlugin::showOutputInEditor(const QString &title, ...@@ -1188,7 +1188,7 @@ IEditor *PerforcePlugin::showOutputInEditor(const QString &title,
const int maxSize = EditorManager::maxTextFileSize() - 1000; const int maxSize = EditorManager::maxTextFileSize() - 1000;
if (content.size() >= maxSize) { if (content.size() >= maxSize) {
content = tr("[Only %1 MB of output shown]").arg(maxSize / 1024 / 1024) + QLatin1Char('\n') content = tr("[Only %1 MB of output shown]").arg(maxSize / 1024 / 1024) + QLatin1Char('\n')
+ content.rightRef(maxSize); + content.right(maxSize);
} }
IEditor *editor = EditorManager::openEditorWithContents(id, &s, content.toUtf8()); IEditor *editor = EditorManager::openEditorWithContents(id, &s, content.toUtf8());
......
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