Skip to content

Commit

Permalink
Refs #11094 Resolves Coverity 1076214
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent e19f7cf commit 7afda07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -8966,7 +8966,9 @@ void ApplicationWindow::activateWindow(Q3ListViewItem * lbi)
if (!lbi || lbi->rtti() == FolderListItem::RTTI)
return;

activateWindow(dynamic_cast<WindowListItem*>(lbi)->window());
WindowListItem* wli = dynamic_cast<WindowListItem*>(lbi);
if(wli)
activateWindow(wli->window());
}

void ApplicationWindow::maximizeWindow(Q3ListViewItem * lbi)
Expand Down

0 comments on commit 7afda07

Please sign in to comment.