Skip to content

Commit

Permalink
Refs #10223 Minor Refl UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Sep 12, 2014
1 parent b0c516f commit 10bfe8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Expand Up @@ -54,6 +54,9 @@
<string>Search Runs</string>
</property>
<layout class="QVBoxLayout" name="layoutSearchPane">
<property name="spacing">
<number>1</number>
</property>
<property name="margin">
<number>1</number>
</property>
Expand Down Expand Up @@ -207,11 +210,17 @@
<string>Process Runs</string>
</property>
<layout class="QHBoxLayout" name="layoutTableView">
<property name="spacing">
<number>1</number>
</property>
<property name="margin">
<number>1</number>
</property>
<item>
<layout class="QVBoxLayout" name="layoutButtonsTable">
<property name="spacing">
<number>1</number>
</property>
<item>
<layout class="QHBoxLayout" name="layoutTableButtons">
<item>
Expand Down
Expand Up @@ -68,6 +68,7 @@ namespace MantidQt
}

m_view->setProgressRange(0, (int)rows.size());
m_view->setProgress(0);
int progress = 0;
for(auto it = rows.begin(); it != rows.end(); ++it)
{
Expand All @@ -81,6 +82,7 @@ namespace MantidQt
const std::string rowNo = Mantid::Kernel::Strings::toString<size_t>(*it + 1);
const std::string message = "Error encountered while processing row " + rowNo + ": \n";
m_view->giveUserCritical(message + ex.what(), "Error");
m_view->setProgress(0);
return;
}
}
Expand Down

0 comments on commit 10bfe8a

Please sign in to comment.