Fixed saving of tool xml paths.

Change-Id: I6a87402963757ba08ac5cdb4ce4f752e622ff301
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Radovan Zivkovic
2014-02-21 01:07:44 +01:00
committed by Oswald Buddenhagen
parent 648c180b80
commit a1f45898a6
3 changed files with 8 additions and 0 deletions

View File

@@ -100,6 +100,11 @@ void VcSchemaManager::removeToolXML(const QString &toolKey)
m_toolXMLPaths.remove(toolKey);
}
void VcSchemaManager::removeToolSchemas()
{
m_toolXMLPaths.clear();
}
void VcSchemaManager::removeAllSchemas()
{
m_documentSchemas.clear();

View File

@@ -58,6 +58,7 @@ public:
QList<QString> toolXMLFilePaths() const;
void addToolXML(const QString &toolKey, const QString &toolFilePath);
void removeToolXML(const QString &toolKey);
void removeToolSchemas();
void removeAllSchemas();

View File

@@ -101,6 +101,8 @@ void ToolSchemaWidget::saveSettings()
{
VcSchemaManager *vcSM = VcSchemaManager::instance();
vcSM->removeToolSchemas();
if (vcSM) {
for (int i = 0; i < ui->m_toolXMLTable->rowCount(); ++i) {
ToolSchemaTableItem *tableItem = static_cast<ToolSchemaTableItem *>(ui->m_toolXMLTable->item(i, 0));