aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-11-24 19:26:13 +0000
committerWeblate <noreply@weblate.org>2017-11-24 19:26:13 +0000
commit56890dfdacb3272808dfaedee7f4d9208f6d5acc (patch)
tree2da40ddecdc429da1e495b3136d0c9dc61ef56c3 /src-qt5/src-cpp
parentTranslated using Weblate (Hungarian) (diff)
parentMerge pull request #512 from schnitzeltony/master (diff)
downloadlumina-56890dfdacb3272808dfaedee7f4d9208f6d5acc.tar.gz
lumina-56890dfdacb3272808dfaedee7f4d9208f6d5acc.tar.bz2
lumina-56890dfdacb3272808dfaedee7f4d9208f6d5acc.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/src-cpp')
-rw-r--r--src-qt5/src-cpp/plugins-screensaver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/src-cpp/plugins-screensaver.cpp b/src-qt5/src-cpp/plugins-screensaver.cpp
index 75e93c9d..4cb90aff 100644
--- a/src-qt5/src-cpp/plugins-screensaver.cpp
+++ b/src-qt5/src-cpp/plugins-screensaver.cpp
@@ -31,6 +31,7 @@ void SSPlugin::loadFile(QString path){
QFile file(path);
if(!file.exists() || !file.open(QIODevice::ReadOnly)){ return; }
data = QJsonDocument::fromJson(file.readAll()).object();
+ qDebug() << "Loaded ScreenSaver Data:" << currentfile << data;
file.close();
}
@@ -102,7 +103,7 @@ QString SSPlugin::translatedDescription(){
QUrl SSPlugin::scriptURL(){
QString exec = data.value("qml").toObject().value("exec").toString();
- //qDebug() << "got exec:" << exec;
+ qDebug() << "got exec:" << exec << data;
if(!exec.startsWith("/")){ exec.prepend( currentfile.section("/",0,-2)+"/" ); }
return QUrl::fromLocalFile(exec);
}
@@ -111,6 +112,7 @@ QUrl SSPlugin::scriptURL(){
// SS PLUGIN SYSTEM
// ===================
SSPlugin SSPluginSystem::findPlugin(QString name){
+ //qDebug() << "FindPlugin:" << name;
SSPlugin SSP;
if(name.startsWith("/") && QFile::exists(name)){ SSP.loadFile(name); return SSP;} //absolute path give - just load that one
//Cleanup the input name and ensure it has the right suffix
bgstack15