Skip to content
Snippets Groups Projects
Commit acd98600 authored by apvrille's avatar apvrille
Browse files

Resolving bug on non set DownloadedFILEPath when downloading models

parent 2f2d63ee
No related branches found
No related tags found
No related merge requests found
...@@ -355,7 +355,11 @@ public class JDialogLoadingNetworkModel extends javax.swing.JFrame implements Ac ...@@ -355,7 +355,11 @@ public class JDialogLoadingNetworkModel extends javax.swing.JFrame implements Ac
jta.append("Loading model: " + fileName); jta.append("Loading model: " + fileName);
String urlToLoad = URLManager.getBaseURL(url) + fileName; String urlToLoad = URLManager.getBaseURL(url) + fileName;
URLManager urlm = new URLManager(); URLManager urlm = new URLManager();
filePath = ConfigurationTTool.DownloadedFILEPath + "/" + fileName; if ((ConfigurationTTool.DownloadedFILEPath == null) || (ConfigurationTTool.DownloadedFILEPath.length() == 0)) {
filePath = fileName;
} else {
filePath = ConfigurationTTool.DownloadedFILEPath + "/" + fileName;
}
boolean ok = urlm.downloadFile(filePath, urlToLoad,this); boolean ok = urlm.downloadFile(filePath, urlToLoad,this);
if (!ok) { if (!ok) {
jta.append("Model transfer failed\nPlease, select another model, or retry\n"); jta.append("Model transfer failed\nPlease, select another model, or retry\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment