Skip to content

Commit

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

std::string oldName = getColumnName(columnIndex);

if(!column->setName(newName))
return;


setManualEdits(true);
emit datasetChanged({}, {}, QMap<QString, QString>({{tq(oldName), tq(newName)}}), false, false);
refresh();
if(column->setName(newName))
{
setManualEdits(true);
emit datasetChanged({}, {}, QMap<QString, QString>({{tq(oldName), tq(newName)}}), false, false);
}
refresh(); //We do refresh in any case because then the emptied name of the column in variableswindow will get filled again
}

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

0 comments on commit 4c7faf7

Please sign in to comment.