Преглед на файлове

Improved check for valid directory path

If path is empty, the directory will become the currentWorkingDirectory
by default.
Andreas Fetzer преди 10 години
родител
ревизия
30163033bd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
   }