diff options
author | Jesse Smith <jsmith@resonatingmedia.com> | 2015-07-18 12:53:11 -0300 |
---|---|---|
committer | Jesse Smith <jsmith@resonatingmedia.com> | 2015-07-18 12:53:11 -0300 |
commit | 676baf4bb756e98b5df08b8e7c38d5050eae150a (patch) | |
tree | abacf948fb92f6fdea22125179ef45a4bc3183c5 /lumina-desktop/desktop-plugins | |
parent | Updated dependency and build instructors for Fedora. (diff) | |
parent | Fix up a calculation of the new window geometry - add in checks for those str... (diff) | |
download | lumina-676baf4bb756e98b5df08b8e7c38d5050eae150a.tar.gz lumina-676baf4bb756e98b5df08b8e7c38d5050eae150a.tar.bz2 lumina-676baf4bb756e98b5df08b8e7c38d5050eae150a.zip |
Merge branch 'master' of https://github.com/pcbsd/lumina
Diffstat (limited to 'lumina-desktop/desktop-plugins')
-rw-r--r-- | lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h b/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h index 3a14b26c..0e6cda2f 100644 --- a/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h +++ b/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h @@ -23,8 +23,10 @@ public: this->layout()->setContentsMargins(0,0,0,0); container = new QQuickWidget(this); container->setResizeMode(QQuickWidget::SizeRootObjectToView); + connect(container, SIGNAL(statusChanged(QQuickWidget::Status)), this, SLOT(statusChange(QQuickWidget::Status)) ); this->layout()->addWidget(container); container->setSource(QUrl::fromLocalFile( LUtils::findQuickPluginFile(ID.section("---",0,0)) )); + QApplication::processEvents(); //to check for errors right away this->setInitialSize(container->initialSize().width(), container->initialSize().height()); } @@ -37,6 +39,7 @@ private slots: void statusChange(QQuickWidget::Status status){ if(status == QQuickWidget::Error){ qDebug() << "Quick Widget Error:" << this->ID(); + container->setSource(QUrl()); //clear out the script - experienced an error } } |