diff options
Diffstat (limited to 'src/plugins/texteditor/itexteditor.cpp')
-rw-r--r-- | src/plugins/texteditor/itexteditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/itexteditor.cpp b/src/plugins/texteditor/itexteditor.cpp index fe2e0f4de2..3631d59c55 100644 --- a/src/plugins/texteditor/itexteditor.cpp +++ b/src/plugins/texteditor/itexteditor.cpp @@ -93,7 +93,7 @@ QMap<QString, QString> ITextEditor::openedTextEditorsContents() ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor); if (!textEditor) continue; - QString fileName = textEditor->file()->fileName(); + QString fileName = textEditor->document()->fileName(); workingCopy[fileName] = textEditor->contents(); } return workingCopy; @@ -106,7 +106,7 @@ QMap<QString, QTextCodec *> TextEditor::ITextEditor::openedTextEditorsEncodings( ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor); if (!textEditor) continue; - QString fileName = textEditor->file()->fileName(); + QString fileName = textEditor->document()->fileName(); workingCopy[fileName] = textEditor->textCodec(); } return workingCopy; |