Shahar Havivi has uploaded a new change for review.

Change subject: UI: No search string when Dashboard selected (#844902)
......................................................................

UI: No search string when Dashboard selected (#844902)

executingSearch is not set to false in case of aborting search

https://bugzilla.redhat.com/show_bug.cgi?id=844902

Change-Id: Iaa830862f52da27eb0a89b65421e26c2f691e03b
Signed-off-by: Shahar Havivi <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
1 file changed, 9 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/09/7709/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
index 87314b7..d6b0015 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
@@ -926,19 +926,17 @@
             }
         }
 
-        if (model == null)
+        if (model != null)
         {
-            return;
+            // Transfer a search string to the model.
+            model.setSearchString(getEffectiveSearchString());
+
+            // Change active list model as neccesary.
+            setSelectedItem(model);
+
+            // Propagate search command to a concrete list model.
+            getSelectedItem().getSearchCommand().Execute();
         }
-
-        // Transfer a search string to the model.
-        model.setSearchString(getEffectiveSearchString());
-
-        // Change active list model as neccesary.
-        setSelectedItem(model);
-
-        // Propagate search command to a concrete list model.
-        getSelectedItem().getSearchCommand().Execute();
 
         executingSearch = false;
     }


--
To view, visit http://gerrit.ovirt.org/7709
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa830862f52da27eb0a89b65421e26c2f691e03b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to