Explorar o código

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

Andreas Fetzer %!s(int64=10) %!d(string=hai) anos
pai
achega
ec6273c20e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 }
 
 //----------------------------------------------------------------------------