summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
index bce6e3f5..88ac00a6 100644
--- a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
+++ b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
@@ -204,7 +204,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
lblPath.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent arg0) {
- if (lblPath.getText() == null) {
+ if (lblPath.getText().trim() == null) {
// wenn leer, dann upload button nicht freigeben
btnDownloadStarten.setEnabled(false);
btnDownloadStarten.setText("Bitte warten");
@@ -487,7 +487,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
dispose();
}// end else
// save config in any case
- Config.setLastDownloadPath(lblPath.getText());
+ Config.setLastDownloadPath(lblPath.getText().trim());
Config.store();
}// end action
});
@@ -497,7 +497,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
btnMainMenu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- Config.setLastDownloadPath(lblPath.getText());
+ Config.setLastDownloadPath(lblPath.getText().trim());
Config.store();
MainMenue_GUI mm = new MainMenue_GUI(c);
@@ -547,7 +547,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
}
task = new DownloadTask(host, port, user.userName, user.password,
- downloadFile, lblPath.getText());
+ downloadFile, lblPath.getText().trim());
task.addPropertyChangeListener(this);
task.execute();
taskrun = true;
@@ -613,8 +613,8 @@ public class FTPSearchDownloader_GUI extends JFrame implements
public boolean isCurrentlyLoading() {
isCurrentlyLoading = false;
- if (lblVerbleibend.getText().equals("0 MB")
- || lblVerbleibend.getText().equals("0")) {
+ if (lblVerbleibend.getText().trim().equals("0 MB")
+ || lblVerbleibend.getText().trim().equals("0")) {
isCurrentlyLoading = false;
} else {
isCurrentlyLoading = true;