forked from qt-creator/qt-creator
Fixed saving of tool xml paths.
Change-Id: I6a87402963757ba08ac5cdb4ce4f752e622ff301 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
648c180b80
commit
a1f45898a6
@@ -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();
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user