diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-08-19 16:15:57 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-08-22 08:54:34 +0200 |
commit | 6772ba622a8ae37161571143005d45db180b8275 (patch) | |
tree | fdead16fe54fd7c583e074f7ea2a0df6be26f6b7 /src/plugins/qmldesigner/shortcutmanager.cpp | |
parent | 8213a88d3e6a3cb0952918095e5ee6543f8fd6a3 (diff) |
Fix closing editor with ctrl+w or "x" or File > Close
If there are other editors on the document visible in some split, it
should not close the document, but only the editor.
Task-number: QTCREATORBUG-9346
Change-Id: Idce1ae2f518d4c6e875d86f9831d41c46c06361c
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/shortcutmanager.cpp')
-rw-r--r-- | src/plugins/qmldesigner/shortcutmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/shortcutmanager.cpp b/src/plugins/qmldesigner/shortcutmanager.cpp index fe3acc94ee..98c358d85c 100644 --- a/src/plugins/qmldesigner/shortcutmanager.cpp +++ b/src/plugins/qmldesigner/shortcutmanager.cpp @@ -92,7 +92,7 @@ void ShortCutManager::registerActions(const Core::Context &qmlDesignerMainContex //Close Editor Core::ActionManager::registerAction(&m_closeCurrentEditorAction, Core::Constants::CLOSE, qmlDesignerMainContext); - connect(&m_closeCurrentEditorAction, SIGNAL(triggered()), em, SLOT(closeEditor())); + connect(&m_closeCurrentEditorAction, SIGNAL(triggered()), em, SLOT(slotCloseCurrentEditorOrDocument())); //Close All Core::ActionManager::registerAction(&m_closeAllEditorsAction, Core::Constants::CLOSEALL, qmlDesignerMainContext); |