Explorar el Código

Also check if path is empty

Andreas Fetzer hace 10 años
padre
commit
373259c9ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Libs/XNAT/Core/ctkXnatSession.cpp

+ 1 - 1
Libs/XNAT/Core/ctkXnatSession.cpp

@@ -475,7 +475,7 @@ void ctkXnatSession::setDefaultFilePath(const QString &path)
   Q_D(ctkXnatSession);
 
   QDir directory(path);
-  if (directory.exists())
+  if (directory.exists() && path.size() != 0)
   {
     d->defaultFilePath = path;
   }