fixes 0003515: Changing Name of Spreadsheet in History Tree Does Not Trigger Name Update in Tab at Bottom of 3D Window

This commit is contained in:
wmayer
2019-01-14 00:21:56 +01:00
parent 1382f83620
commit 632f9cf250

View File

@@ -327,6 +327,10 @@ void SheetView::currentChanged ( const QModelIndex & current, const QModelIndex
void SheetView::updateCell(const App::Property *prop)
{
try {
if (sheet && prop == &sheet->Label) {
QString cap = QString::fromUtf8(sheet->Label.getValue());
setWindowTitle(cap);
}
CellAddress address;
sheet->getCellAddress(prop, address);