Skip to content

Commit

Permalink
Corrected merge errors and compiler warnings
Browse files Browse the repository at this point in the history
Refs #10277
  • Loading branch information
DanNixon committed Nov 3, 2014
1 parent 1dddb4b commit 55e3fad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
Expand Up @@ -89,13 +89,15 @@ namespace CustomInterfaces

std::map<std::string, double> getRangesFromInstrument(QString instName = "", QString analyser = "", QString reflection = "");

protected:
Ui::IndirectDataReduction m_uiForm;

signals:
/// Update the Run button on the IDR main window
void updateRunButton(bool enabled = true, QString message = "Run", QString tooltip = "");

private:
bool m_tabRunning;

private slots:
void tabExecutionComplete(bool error);

Expand Down
Expand Up @@ -152,7 +152,7 @@ namespace CustomInterfaces
/// Run a python script
void runAsPythonScript(const QString & code, bool no_output);

private:
protected:
/// Overidden by child class.
virtual void setup() = 0;
/// Overidden by child class.
Expand Down
Expand Up @@ -45,6 +45,21 @@ namespace CustomInterfaces
}
}

/**
* Slot used to update the run button when an algorithm that was strted by the Run button complete.
*
* @param error Unused
*/
void IndirectDataReductionTab::tabExecutionComplete(bool error)
{
UNUSED_ARG(error);
if(m_tabRunning)
{
m_tabRunning = false;
emit updateRunButton();
}
}

/**
* Loads an empty instrument into a workspace (__empty_INST) unless the workspace already exists.
*
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/Quasi.cpp
Expand Up @@ -192,7 +192,7 @@ namespace MantidQt
MatrixWorkspace_sptr outputWorkspace = AnalysisDataService::Instance().retrieveWS<MatrixWorkspace>(outWsName.toStdString());
TextAxis* axis = dynamic_cast<TextAxis*>(outputWorkspace->getAxis(1));

for(int histIndex = 0; histIndex < outputWorkspace->getNumberHistograms(); histIndex++)
for(size_t histIndex = 0; histIndex < outputWorkspace->getNumberHistograms(); histIndex++)
{
QString specName = QString::fromStdString(axis->label(histIndex));

Expand Down

0 comments on commit 55e3fad

Please sign in to comment.