summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/khelpcenter-localindices.patch
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-11-10 18:04:39 -0500
committerRobert Xu <robxu9@gmail.com>2011-11-10 18:04:39 -0500
commit21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 (patch)
tree2cfb64c59322628e613ed0895e3c3694d3abe6bd /opensuse/tdebase/khelpcenter-localindices.patch
parent8667643bff14a60d8571c599efd3e48bed3e3b12 (diff)
downloadtde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.tar.gz
tde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.zip
initial commit to suse branch: eclipse integration
Diffstat (limited to 'opensuse/tdebase/khelpcenter-localindices.patch')
-rw-r--r--opensuse/tdebase/khelpcenter-localindices.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/opensuse/tdebase/khelpcenter-localindices.patch b/opensuse/tdebase/khelpcenter-localindices.patch
deleted file mode 100644
index a2b41a78a..000000000
--- a/opensuse/tdebase/khelpcenter-localindices.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Index: khelpcenter/kcmhelpcenter.cpp
-===================================================================
---- khelpcenter/kcmhelpcenter.cpp.orig
-+++ khelpcenter/kcmhelpcenter.cpp
-@@ -321,6 +321,7 @@ bool KCMHelpCenter::save()
-
- void KCMHelpCenter::load()
- {
-+ findWriteableIndexDir();
- mIndexDirLabel->setText( Prefs::indexDirectory() );
-
- mListView->clear();
-@@ -675,6 +676,12 @@ void KCMHelpCenter::checkSelection()
- enableButtonOK( count != 0 );
- }
-
-+void KCMHelpCenter::findWriteableIndexDir()
-+{
-+ QFileInfo currentDir( Prefs::indexDirectory() );
-+ if ( !currentDir.isWritable() )
-+ Prefs::setIndexDirectory( KGlobal::dirs()->saveLocation("data", "khelpcenter/index/") );
-+}
- #include "kcmhelpcenter.moc"
-
- // vim:ts=2:sw=2:et
-Index: khelpcenter/kcmhelpcenter.h
-===================================================================
---- khelpcenter/kcmhelpcenter.h.orig
-+++ khelpcenter/kcmhelpcenter.h
-@@ -146,6 +146,11 @@ class KCMHelpCenter : public KDialogBase
-
- void advanceProgress();
-
-+ /**
-+ * Find a user-writeable location for the indices, if the current location
-+ * is not.
-+ */
-+ void findWriteableIndexDir();
- private:
- KHC::SearchEngine *mEngine;
-