Browse Source

Also check if path is empty

Andreas Fetzer 10 years ago
parent
commit
373259c9ff
1 changed files with 1 additions and 1 deletions
  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;
   }