mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge pull request #7011 from zzmp/fix/render-connect-warnings
Only connect render config if dirty signal present
This commit is contained in:
commit
4d62df2996
1 changed files with 7 additions and 1 deletions
|
@ -257,7 +257,13 @@ public:
|
||||||
QConfigPointer config = _jobs.back().getConfiguration();
|
QConfigPointer config = _jobs.back().getConfiguration();
|
||||||
config->setParent(_config.get());
|
config->setParent(_config.get());
|
||||||
config->setObjectName(name.c_str());
|
config->setObjectName(name.c_str());
|
||||||
QObject::connect(config.get(), SIGNAL(dirty()), _config.get(), SLOT(refresh()));
|
|
||||||
|
// Connect dirty->refresh if defined
|
||||||
|
static const char* DIRTY_SIGNAL = "dirty()";
|
||||||
|
if (config->metaObject()->indexOfSignal(DIRTY_SIGNAL) != -1) {
|
||||||
|
QObject::connect(config.get(), SIGNAL(dirty()), _config.get(), SLOT(refresh()));
|
||||||
|
}
|
||||||
|
|
||||||
return _jobs.back().getOutput();
|
return _jobs.back().getOutput();
|
||||||
}
|
}
|
||||||
template <class T, class... A> const Varying addJob(std::string name, A&&... args) {
|
template <class T, class... A> const Varying addJob(std::string name, A&&... args) {
|
||||||
|
|
Loading…
Reference in a new issue