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
Unmaintained
KDE Workspace
Commits
2519ac36
Commit
2519ac36
authored
Aug 17, 2012
by
Lamarque Souza
Browse files
Fix menu items not clickable problem in QML shutdown dialog.
BUG: 304907 FIXED-IN: 4.9.1
parent
bcdfd08f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ksmserver/themes/default/main.qml
View file @
2519ac36
...
...
@@ -278,15 +278,15 @@ PlasmaCore.FrameSvgItem {
contextMenu
=
shutdownOptionsComponent
.
createObject
(
shutdownButton
)
if
(
spdMethods
.
StandbyState
)
{
// 1 == Solid::PowerManagement::StandbyState
contextMenu
.
append
({
itemIndex
:
1
,
itemText
:
i18n
(
"
&Standby
"
)})
contextMenu
.
append
({
itemIndex
:
1
,
itemText
:
i18n
(
"
&Standby
"
)
,
itemSubMenu
:
null
,
itemAllowAmpersand
:
false
})
}
if
(
spdMethods
.
SuspendState
)
{
// 2 == Solid::PowerManagement::SuspendState
contextMenu
.
append
({
itemIndex
:
2
,
itemText
:
i18n
(
"
Suspend to &RAM
"
)})
contextMenu
.
append
({
itemIndex
:
2
,
itemText
:
i18n
(
"
Suspend to &RAM
"
)
,
itemSubMenu
:
null
,
itemAllowAmpersand
:
false
})
}
if
(
spdMethods
.
HibernateState
)
{
// 4 == Solid::PowerManagement::HibernateState
contextMenu
.
append
({
itemIndex
:
4
,
itemText
:
i18n
(
"
Suspend to &Disk
"
)})
contextMenu
.
append
({
itemIndex
:
4
,
itemText
:
i18n
(
"
Suspend to &Disk
"
)
,
itemSubMenu
:
null
,
itemAllowAmpersand
:
false
})
}
contextMenu
.
clicked
.
connect
(
shutdownUi
.
suspendRequested
)
}
...
...
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