NOISSUE fix a bunch of warnings thrown by Qt internals

Badly connected signals/slots and similar things.
This commit is contained in:
Petr Mrázek
2017-12-14 00:29:00 +01:00
parent ef2cbe16e6
commit f18afd3d1e
8 changed files with 27 additions and 20 deletions

View File

@ -205,6 +205,10 @@ void VersionList::merge(const BaseEntity::Ptr &other)
// TODO: do not reset the whole model. maybe?
beginResetModel();
m_versions.clear();
if(list->m_versions.isEmpty())
{
qWarning() << "Empty list loaded ...";
}
for (const VersionPtr &version : list->m_versions)
{
// we already have the version. merge the contents