diff options
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.cpp')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index e8f691b1d2..ee4ba260fb 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -166,14 +166,14 @@ ExtensionSystem::IPlugin::ShutdownFlag CodepasterPlugin::aboutToShutdown() void CodepasterPlugin::updateActions() { const IEditor* editor = EditorManager::instance()->currentEditor(); - const BaseTextEditorEditable *textEditor = qobject_cast<const BaseTextEditorEditable *>(editor); + const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor); m_postEditorAction->setEnabled(textEditor != 0); } void CodepasterPlugin::postEditor() { const IEditor* editor = EditorManager::instance()->currentEditor(); - const BaseTextEditorEditable *textEditor = qobject_cast<const BaseTextEditorEditable *>(editor); + const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor); if (!textEditor) return; @@ -181,7 +181,7 @@ void CodepasterPlugin::postEditor() if (data.isEmpty()) data = textEditor->contents(); if (!data.isEmpty()) - post(data, textEditor->editor()->mimeType()); + post(data, textEditor->editorWidget()->mimeType()); } void CodepasterPlugin::postClipboard() |