Fixes: crash on reloading a resource file

RevBy:    thorbjoern
Details:  don't call ResourceView::reset() but ResourceModel::reset()
This commit is contained in:
Banana Joe
2009-02-18 12:51:29 +01:00
parent 072bd9d702
commit 473d408bb1
2 changed files with 2 additions and 3 deletions

View File

@@ -930,6 +930,7 @@ bool ResourceModel::reload()
const bool result = m_resource_file.load();
if (result)
setDirty(false);
reset();
return result;
}

View File

@@ -489,9 +489,7 @@ bool ResourceView::load(QString fileName)
if (!fi.exists())
return false;
const bool result = m_qrcModel->reload();
reset();
return result;
return m_qrcModel->reload();
}
bool ResourceView::save(void)