Commit db369de9 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Fix compiler warning and warning in with QtDesigner plugin

parent 2bc680a7
......@@ -779,10 +779,7 @@ KdenliveDoc *Core::currentDoc()
Timecode Core::timecode() const
{
if (this) {
return m_timecode;
}
return Timecode();
return m_timecode;
}
void Core::setDocumentModified()
......
......@@ -34,9 +34,9 @@ QValidator::State TimecodeValidator::validate(QString &str, int &) const
}
TimecodeDisplay::TimecodeDisplay(QWidget *parent, bool autoAdjust)
: TimecodeDisplay(parent, autoAdjust ? pCore->timecode() : Timecode())
: TimecodeDisplay(parent, (pCore && autoAdjust) ? pCore->timecode() : Timecode())
{
if (autoAdjust) {
if (pCore && autoAdjust) {
connect(pCore.get(), &Core::updateProjectTimecode, this, &TimecodeDisplay::refreshTimeCode);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment