Commit d15cc09e authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

diff: Persist changing diff style from ctx menu

parent e4d52911
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment