aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Mi <codeminister@publicstatic.de>2014-01-23 19:07:21 (GMT)
committerGregor Mi <codeminister@publicstatic.de>2014-01-23 19:07:21 (GMT)
commit231f78a0cb7049da9ceea92e8a1c923ed7cbd133 (patch)
treece69234ca6c52d7c94154d4ea4e3e6937d21022c
parent3703dfb5d184a42e999eb7942e5a6ed66b58881b (diff)
Recent File List Entry Count: persist setting
-rw-r--r--.gitignore3
-rw-r--r--kate/src/kateconfigdialog.cpp5
2 files changed, 5 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 5213072..daf3c16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,3 @@ build
# from dolphin
.directory
-
-# from CMake
-CMakeFiles/cmake.check_cache
diff --git a/kate/src/kateconfigdialog.cpp b/kate/src/kateconfigdialog.cpp
index 52b58b3..338c1c8 100644
--- a/kate/src/kateconfigdialog.cpp
+++ b/kate/src/kateconfigdialog.cpp
@@ -149,6 +149,9 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
// restore view config
sessionConfigUi->restoreVC->setChecked( cgGeneral.readEntry("Restore Window Configuration", true) );
connect(sessionConfigUi->restoreVC, SIGNAL(toggled(bool)), this, SLOT(slotChanged()) );
+
+ sessionConfigUi->spinBoxRecentFilesCount->setValue(cgGeneral.readEntry("Recent File List Entry Count", 10));
+ connect(sessionConfigUi->spinBoxRecentFilesCount, SIGNAL(valueChanged(int)), this, SLOT(slotChanged()));
QString sesStart (cgGeneral.readEntry ("Startup Session", "manual"));
if (sesStart == QStringLiteral("new"))
@@ -302,6 +305,8 @@ void KateConfigDialog::slotApply()
KConfigGroup cg = KConfigGroup(config, "General");
cg.writeEntry("Restore Window Configuration", sessionConfigUi->restoreVC->isChecked());
+
+ cg.writeEntry("Recent File List Entry Count", sessionConfigUi->spinBoxRecentFilesCount->value());
if (sessionConfigUi->startNewSessionRadioButton->isChecked()) {
cg.writeEntry("Startup Session", "new");