missing one update for tuleap #265
Change-Id: I352468de392dcfffc11572fb8d4a8cb8bc51b91f
Signed-off-by: Jacques Bouthillier <lmcbout@gmail.com>
diff --git a/org.eclipse.egerrit.dashboard.ui/src/org/eclipse/egerrit/internal/dashboard/ui/views/GerritTableView.java b/org.eclipse.egerrit.dashboard.ui/src/org/eclipse/egerrit/internal/dashboard/ui/views/GerritTableView.java
index beacf24..007399c 100644
--- a/org.eclipse.egerrit.dashboard.ui/src/org/eclipse/egerrit/internal/dashboard/ui/views/GerritTableView.java
+++ b/org.eclipse.egerrit.dashboard.ui/src/org/eclipse/egerrit/internal/dashboard/ui/views/GerritTableView.java
@@ -1131,21 +1131,23 @@
if (fAddOneServerDialog == null) {
fAddOneServerDialog = new AddOneServerDialog();
fAddOneServerDialog.promptToModifyServer(defaultServerInfo, true);
- defaultServerInfo = fAddOneServerDialog.getServer();
+ GerritServerInformation serverInfo = fAddOneServerDialog.getServer();
fAddOneServerDialog = null; //Reset the instance
+ if (serverInfo == null) {
+ logger.debug("No new server entered by the user."); //$NON-NLS-1$
+ return;
+ }
+ defaultServerInfo = serverInfo; //Set the default server with the latest value
+
if (defaultServerInfo == null) {
logger.debug("No new server entered by the user."); //$NON-NLS-1$
return;
}
- }
- if (defaultServerInfo == null) {
- logger.debug("No new server entered by the user."); //$NON-NLS-1$
- return;
- }
- if (fSearchTextBox == null || fSearchTextBox.getText().isEmpty()) {
- processCommands(ChangeStatus.OPEN.getValue());
- } else {
- processCommands(fSearchTextBox.getText());
+ if (fSearchTextBox == null || fSearchTextBox.getText().isEmpty()) {
+ processCommands(ChangeStatus.OPEN.getValue());
+ } else {
+ processCommands(fSearchTextBox.getText());
+ }
}
}