Explorar el Código

Improved check for valid directory path

If path is empty, the directory will become the currentWorkingDirectory
by default.
Andreas Fetzer hace 10 años
padre
commit
30163033bd
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

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