Skip to content

Commit

Permalink
SpreadSheet: [skip ci] fix crash when changing data inside a spread s…
Browse files Browse the repository at this point in the history
…heet
  • Loading branch information
wwmayer committed Dec 16, 2019
1 parent fed1e79 commit 00b3aa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp
Expand Up @@ -50,7 +50,10 @@ QWidget *SpreadsheetDelegate::createEditor(QWidget *parent,
editor->setIndex(index);

editor->setDocumentObject(sheet);
connect(editor, SIGNAL(returnPressed()), this, SLOT(commitAndCloseEditor()));
// See https://forum.freecadweb.org/viewtopic.php?f=3&t=41694
// It looks like the slot commitAndCloseEditor() is not needed any more and even
// causes a crash when doing so because the LineEdit is still accessed after its destruction.
//connect(editor, SIGNAL(returnPressed()), this, SLOT(commitAndCloseEditor()));
return editor;
}

Expand Down

0 comments on commit 00b3aa5

Please sign in to comment.