Skip to content

Commit

Permalink
Fix for bug DSK-346471; Items in folderdropdown in bookmark star dial…
Browse files Browse the repository at this point in the history
…og cannot be clicked by watir on *nix

This is picked by hand from 9fac20a2247b2380fea63dcfc6c160d21e0c007b
Change author Karianne Ekern <karie@opera.com>
  • Loading branch information
Michal Zajaczkowski committed Feb 24, 2012
1 parent 176c588 commit f3c8f51
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -91,15 +91,19 @@ public int getOpenQuickWindowCount() {

// Note: This grabs the first window with a matching name, there might be more
public QuickWindow getQuickWindow(QuickWidgetSearchType property, String value) {
QuickWindow lastFound = null;
List<QuickWindow> windows = getQuickWindowList();
for (QuickWindow window : windows) {
if (property.equals(QuickWidgetSearchType.NAME)) {
if (window.getName().equals(value)) {
return window;
if (window.isOnScreen())
return window;
else
lastFound = window;
}
}
}
return null;
return lastFound;
}

public List<QuickWindow> getQuickWindowList() {
Expand Down Expand Up @@ -139,6 +143,7 @@ public int getQuickWindowID(String name) {
}
}

// TODO: Check diff between this and getQuickWindow(SearchProp, name) and remove this
public QuickWindow getQuickWindowByName(String name) {
List<DesktopWindowInfo> windowList = getDesktopWindowInfoList();
for (DesktopWindowInfo window : windowList) {
Expand Down

0 comments on commit f3c8f51

Please sign in to comment.