From 860a65f2f3db46daff156f83ffed583e7ee772ed Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 28 May 2009 22:49:38 -0400 Subject: Invalidate the index when closing the editor --- sigmodr/SigmodrUI.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sigmodr/SigmodrUI.cpp') diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp index 6d930675..b1bbf22a 100644 --- a/sigmodr/SigmodrUI.cpp +++ b/sigmodr/SigmodrUI.cpp @@ -382,6 +382,7 @@ bool SigmodrUI::closeWidget() if (closed) { delete formPanel->takeWidget(); + m_editedIndex = QModelIndex(); formPanel->setWidget(NULL); boxButtons->setEnabled(false); buttonValidate->setEnabled(false); -- cgit