Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
d15cc09e
Commit
d15cc09e
authored
Oct 06, 2022
by
Waqar Ahmed
Browse files
diff: Persist changing diff style from ctx menu
parent
e4d52911
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/diff/diffwidget.cpp
View file @
d15cc09e
...
...
@@ -99,6 +99,12 @@ void DiffWidget::handleStyleChange(int newStyle)
qWarning
()
<<
"Unexpected diff style value: "
<<
newStyle
;
Q_UNREACHABLE
();
}
if
(
sender
()
&&
(
sender
()
==
m_left
||
sender
()
==
m_right
))
{
KSharedConfig
::
Ptr
config
=
KSharedConfig
::
openConfig
();
KConfigGroup
cgGeneral
=
KConfigGroup
(
config
,
"General"
);
cgGeneral
.
writeEntry
(
"Diff Show Style"
,
(
int
)
m_style
);
}
}
void
DiffWidget
::
handleStageUnstage
(
DiffEditor
*
e
,
int
startLine
,
int
endLine
,
int
actionType
,
DiffParams
::
Flag
f
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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