Browse Source

Improved check for valid directory path

If path is empty, the directory will become the currentWorkingDirectory
by default.
Andreas Fetzer 10 years ago
parent
commit
30163033bd
1 changed files with 1 additions and 1 deletions
  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;
   }