From 2e47f34398c9017a3c8eda617e01ec6696d5b861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 30 Sep 2013 11:17:40 +0200 Subject: [PATCH] [kwinscripts] Disable installing a local script for the moment Plasma::Package changed in a way that it's not just a trivial change to get it compile again. --- kcmkwin/kwinscripts/module.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwinscripts/module.cpp b/kcmkwin/kwinscripts/module.cpp index 07a3e76790..b4810e7b69 100644 --- a/kcmkwin/kwinscripts/module.cpp +++ b/kcmkwin/kwinscripts/module.cpp @@ -61,6 +61,8 @@ Module::Module(QWidget *parent, const QVariantList &args) : connect(ui->importScriptButton, SIGNAL(clicked()), SLOT(importScript())); connect(ui->ghnsButton, SIGNAL(clicked(bool)), SLOT(slotGHNSClicked())); + ui->importScriptButton->setEnabled(false); + updateListViewContents(); } @@ -77,13 +79,16 @@ void Module::importScript() if (path.isNull()) { return; } - if (!Plasma::Package::installPackage(path, componentData().dirs()->saveLocation("data", "kwin/scripts/"), "kwin-script-")) { +#warning Needs adjustments to changes in Plasma::Package +#if 0 + if (!Plasma::Package::installPackage(path, QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/kwin/scripts/", "kwin-script-")) { KMessageWidget* msgWidget = new KMessageWidget; msgWidget->setText(ki18n("Cannot import selected script: maybe a script already exists with the same name or there is a permission problem.").toString()); msgWidget->setMessageType(KMessageWidget::Error); ui->verticalLayout2->insertWidget(0, msgWidget); msgWidget->animatedShow(); } +#endif // TODO: reload list after successful import }