Skip to content

Commit

Permalink
no change variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Nov 27, 2024
1 parent a41f10b commit 268b031
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Desktop/data/datasetpackage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1634,17 +1634,13 @@ void DataSetPackage::setColumnName(size_t columnIndex, const std::string & newNa

std::string oldName = getColumnName(columnIndex);

beginResetModel();

bool change = column->setName(newName);

endResetModel();

if (change)
{
setManualEdits(true);
emit datasetChanged({}, {}, QMap<QString, QString>({{tq(oldName), tq(newName)}}), false, false);
}
if(!column->setName(newName))
return;


setManualEdits(true);
emit datasetChanged({}, {}, QMap<QString, QString>({{tq(oldName), tq(newName)}}), false, false);
refresh();
}

void DataSetPackage::setColumnTitle(size_t columnIndex, const std::string & newTitle)
Expand Down

0 comments on commit 268b031

Please sign in to comment.