Sfoglia il codice sorgente

Don't update the modified flag after an object was saved on the server and the ID was set afterwards

Andreas Fetzer 10 anni fa
parent
commit
ec6273c20e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Libs/XNAT/Core/ctkXnatObject.cpp

+ 2 - 0
Libs/XNAT/Core/ctkXnatObject.cpp

@@ -308,7 +308,9 @@ void ctkXnatObject::download(const QString& filename)
 //----------------------------------------------------------------------------
 void ctkXnatObject::save()
 {
+  Q_D(ctkXnatObject);
   this->saveImpl();
+  d->modified = false;
 }
 
 //----------------------------------------------------------------------------