forked from qt-creator/qt-creator
EditorManager: adding save (as/all) to editor list's context menu
It is confusing that save is missing in the context menu of the editor manager. Split mode requires to use different actions then the ones in the File menu, since the editor in question might not be the current editor. Change-Id: I47cd5295f7a3b58906e9b158e88d9128142d4311 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
@@ -333,7 +333,7 @@ void EditorToolBar::listContextMenu(QPoint pos)
|
||||
QMenu menu;
|
||||
QAction *copyPath = menu.addAction(tr("Copy Full Path to Clipboard"));
|
||||
menu.addSeparator();
|
||||
EditorManager::instance()->addCloseEditorActions(&menu, index);
|
||||
EditorManager::instance()->addSaveAndCloseEditorActions(&menu, index);
|
||||
menu.addSeparator();
|
||||
EditorManager::instance()->addNativeDirActions(&menu, index);
|
||||
QAction *result = menu.exec(d->m_editorList->mapToGlobal(pos));
|
||||
|
||||
Reference in New Issue
Block a user