diff options
author | Timothy Pearson <[email protected]> | 2012-05-23 18:20:09 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-05-23 18:20:09 -0500 |
commit | de4e7b41598b4c8db0948e4c2c216d73e952f7bb (patch) | |
tree | b8772c60b0b57c16d2e0055697ca95bff623d2eb /kate/app/katedocmanager.cpp | |
parent | c281f8a59d6d1cc7d72d6fed23a11ee785988e1c (diff) | |
download | tdebase-de4e7b41598b4c8db0948e4c2c216d73e952f7bb.tar.gz tdebase-de4e7b41598b4c8db0948e4c2c216d73e952f7bb.zip |
Add support to Kate for saving/restoring manual document placement
Make absolutely sure that kdesktop_lock reads recently changed configuration files when starting up
Diffstat (limited to 'kate/app/katedocmanager.cpp')
-rw-r--r-- | kate/app/katedocmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kate/app/katedocmanager.cpp b/kate/app/katedocmanager.cpp index f9158dc1c..f23d5abba 100644 --- a/kate/app/katedocmanager.cpp +++ b/kate/app/katedocmanager.cpp @@ -455,7 +455,8 @@ void KateDocManager::saveDocumentList (KConfig* config) int i=0; for ( Kate::Document *doc = m_docList.first(); doc; doc = m_docList.next() ) { - config->setGroup(TQString("Document %1").arg(i)); + long docListPos = doc->documentListPosition(); + config->setGroup(TQString("Document %1").arg((docListPos<0)?i:docListPos)); doc->writeSessionConfig(config); config->setGroup(grp); |