Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
c3284e60
Commit
c3284e60
authored
Jun 28, 2010
by
con
Browse files
Fixes: "Open with" context menu disabled in project tree.
Task-number: QTCREATORBUG-1764
parent
a945f8b5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectexplorer.cpp
View file @
c3284e60
...
@@ -406,10 +406,10 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
...
@@ -406,10 +406,10 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
// "open with" submenu
// "open with" submenu
Core
::
ActionContainer
*
const
openWith
=
Core
::
ActionContainer
*
const
openWith
=
am
->
createMenu
(
ProjectExplorer
::
Constants
::
M_OPENFILEWITHCONTEXT
);
am
->
createMenu
(
ProjectExplorer
::
Constants
::
M_OPENFILEWITHCONTEXT
);
openWith
->
setEmptyAction
(
Core
::
ActionContainer
::
EA_None
);
d
->
m_openWithMenu
=
openWith
->
menu
();
d
->
m_openWithMenu
=
openWith
->
menu
();
d
->
m_openWithMenu
->
setTitle
(
tr
(
"Open With"
));
d
->
m_openWithMenu
->
setTitle
(
tr
(
"Open With"
));
connect
(
mfilec
->
menu
(),
SIGNAL
(
aboutToShow
()),
this
,
SLOT
(
populateOpenWithMenu
()));
connect
(
d
->
m_openWithMenu
,
SIGNAL
(
triggered
(
QAction
*
)),
connect
(
d
->
m_openWithMenu
,
SIGNAL
(
triggered
(
QAction
*
)),
this
,
SLOT
(
openWithMenuTriggered
(
QAction
*
)));
this
,
SLOT
(
openWithMenuTriggered
(
QAction
*
)));
...
@@ -1206,6 +1206,7 @@ void ProjectExplorerPlugin::showContextMenu(const QPoint &globalPos, Node *node)
...
@@ -1206,6 +1206,7 @@ void ProjectExplorerPlugin::showContextMenu(const QPoint &globalPos, Node *node)
contextMenu
=
d
->
m_folderMenu
;
contextMenu
=
d
->
m_folderMenu
;
break
;
break
;
case
FileNodeType
:
case
FileNodeType
:
populateOpenWithMenu
();
contextMenu
=
d
->
m_fileMenu
;
contextMenu
=
d
->
m_fileMenu
;
break
;
break
;
default:
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment