summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java
index c435cf45..a3e4c6cf 100644
--- a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java
+++ b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java
@@ -205,7 +205,7 @@ public class FTPEditDownloader_GUI extends JFrame implements
lblPath.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent arg0) {
- if (lblPath.getText() == null) {
+ if (lblPath.getText().trim().trim() == null) {
// wenn leer, dann upload button nicht freigeben
btnDownloadStarten.setEnabled(false);
btnDownloadStarten.setText("Bitte warten");
@@ -480,7 +480,7 @@ public class FTPEditDownloader_GUI extends JFrame implements
}// end else
// always save download path
- File f = new File(lblPath.getText());
+ File f = new File(lblPath.getText().trim().trim());
if (f.isDirectory()) {
Config.setLastDownloadPath(f.toString());
} else if (f.getParentFile().isDirectory()) {
@@ -534,7 +534,7 @@ public class FTPEditDownloader_GUI extends JFrame implements
}
task = new DownloadTask(host, port, user.userName, user.password,
- downloadFile, lblPath.getText());
+ downloadFile, lblPath.getText().trim().trim());
task.addPropertyChangeListener(this);
task.execute();
taskrun = true;
@@ -598,8 +598,8 @@ public class FTPEditDownloader_GUI extends JFrame implements
public boolean isCurrentlyLoading() {
isCurrentlyLoading = false;
- if (lblVerbleibend.getText().equals("0 MB")
- || lblVerbleibend.getText().equals("0")) {
+ if (lblVerbleibend.getText().trim().trim().equals("0 MB")
+ || lblVerbleibend.getText().trim().trim().equals("0")) {
isCurrentlyLoading = false;
} else {
isCurrentlyLoading = true;