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
Marco Bubke
flatpak-qt-creator
Commits
3b177fac
Commit
3b177fac
authored
Nov 15, 2010
by
con
Browse files
Some menus where missing a setEmptyAction(EA_None) call.
Was exposed by fixing the empty action mechanism in
d7e7c342
.
parent
0f0f53a6
Changes
2
Show whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/mainwindow.cpp
View file @
3b177fac
...
...
@@ -579,6 +579,7 @@ void MainWindow::registerDefaultActions()
ActionContainer
*
ac
=
am
->
createMenu
(
Constants
::
M_FILE_RECENTFILES
);
mfile
->
addMenu
(
ac
,
Constants
::
G_FILE_OPEN
);
ac
->
menu
()
->
setTitle
(
tr
(
"Recent &Files"
));
ac
->
setEmptyAction
(
ActionContainer
::
EA_None
);
// Save Action
icon
=
QIcon
::
fromTheme
(
QLatin1String
(
"document-save"
),
QIcon
(
Constants
::
ICON_SAVEFILE
));
...
...
src/plugins/projectexplorer/projectexplorer.cpp
View file @
3b177fac
...
...
@@ -526,6 +526,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
Core
::
ActionContainer
*
mrecent
=
am
->
createMenu
(
Constants
::
M_RECENTPROJECTS
);
mrecent
->
menu
()
->
setTitle
(
tr
(
"Recent P&rojects"
));
mrecent
->
setEmptyAction
(
Core
::
ActionContainer
::
EA_None
);
mfile
->
addMenu
(
mrecent
,
Core
::
Constants
::
G_FILE_OPEN
);
connect
(
mfile
->
menu
(),
SIGNAL
(
aboutToShow
()),
this
,
SLOT
(
updateRecentProjectMenu
()));
...
...
@@ -548,6 +549,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
// session menu
Core
::
ActionContainer
*
msession
=
am
->
createMenu
(
Constants
::
M_SESSION
);
msession
->
menu
()
->
setTitle
(
tr
(
"Session"
));
msession
->
setEmptyAction
(
Core
::
ActionContainer
::
EA_None
);
mfile
->
addMenu
(
msession
,
Core
::
Constants
::
G_FILE_PROJECT
);
d
->
m_sessionMenu
=
msession
->
menu
();
connect
(
mfile
->
menu
(),
SIGNAL
(
aboutToShow
()),
...
...
Write
Preview
Supports
Markdown
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