Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Miguel Lopez
Krita
Commits
9f984137
Commit
9f984137
authored
Jul 16, 2014
by
Dan Leinir Turthra Jensen
🌈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around an issue where gemini would not store its shortcut settings right
parent
85586245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
krita/ui/kis_view2.cpp
krita/ui/kis_view2.cpp
+15
-1
No files found.
krita/ui/kis_view2.cpp
View file @
9f984137
...
...
@@ -488,7 +488,21 @@ KisView2::~KisView2()
m_d
->
filterManager
->
cancel
();
}
{
// The reason for this is to ensure the shortcuts are saved at the right time,
// and only the right shortcuts. Gemini has two views at all times, and shortcuts
// must be handled by the desktopview, but if we use the logic as below, we
// overwrite the desktop view's settings with the sketch view's
if
(
qApp
->
applicationName
()
==
QLatin1String
(
"kritagemini"
))
{
KConfigGroup
group
(
KGlobal
::
config
(),
"krita/shortcuts"
);
foreach
(
KActionCollection
*
collection
,
KActionCollection
::
allCollections
())
{
const
QObject
*
obj
=
dynamic_cast
<
const
QObject
*>
(
collection
->
parentGUIClient
());
if
(
obj
&&
qobject_cast
<
const
KisView2
*>
(
obj
)
&&
!
obj
->
objectName
().
startsWith
(
"view_0"
))
break
;
collection
->
setConfigGroup
(
"krita/shortcuts"
);
collection
->
writeSettings
(
&
group
);
}
}
else
{
KConfigGroup
group
(
KGlobal
::
config
(),
"krita/shortcuts"
);
foreach
(
KActionCollection
*
collection
,
KActionCollection
::
allCollections
())
{
collection
->
setConfigGroup
(
"krita/shortcuts"
);
...
...
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