@@ -105,6 +105,7 @@ class RelActManualReportResource : public Wt::WResource
105105 assert ( m_app );
106106 assert ( m_tool );
107107 assert ( m_interspec );
108+ setTakesUpdateLock ( true );
108109 }
109110
110111 virtual ~RelActManualReportResource ()
@@ -197,11 +198,11 @@ class RelActManualReportResource : public Wt::WResource
197198 {
198199 cerr << " Error handling request for RelActManualReportResource: " << e.what () << endl;
199200 log (" error" ) << " Error handling request for RelActManualReportResource: " << e.what ();
200- response.out () << " Error creating HTML file: " << e.what ()
201+ response.out () << " Error creating HTML file: " << e.what ()
201202 << " \n\n Please report to InterSpec@sandia.gov." ;
202203
203- // passMessage( "Error getting spectrum file currently being shown" ,
204- // "", WarningWidget::WarningMsgHigh );
204+ passMessage ( " Error getting spectrum file currently being shown: " + string (e. what ()) ,
205+ WarningWidget::WarningMsgHigh );
205206
206207 response.setStatus (500 );
207208 assert ( 0 );
@@ -672,23 +673,23 @@ void RelActManualGui::init()
672673 m_downloadHtmlReport = new WAnchor ( WLink (m_htmlResource), btndiv );
673674 m_downloadHtmlReport->setTarget ( AnchorTarget::TargetNewWindow );
674675 m_downloadHtmlReport->setStyleClass ( " LinkBtn DownloadLink CALp" );
675- m_downloadHtmlReport->setText ( " HTML Report" );
676676#else
677- m_downloadHtmlReport = new WPushButton ( " HTML Report " , btndiv );
677+ m_downloadHtmlReport = new WPushButton ( btndiv );
678678 m_downloadHtmlReport->setIcon ( " InterSpec_resources/images/download_small.svg" );
679+ m_downloadHtmlReport->setLink ( WLink ( m_htmlResource ) );
679680 m_downloadHtmlReport->setLinkTarget ( Wt::TargetNewWindow );
680681 m_downloadHtmlReport->setStyleClass ( " LinkBtn DownloadBtn CALp" );
681- m_downloadHtmlReport->setLink ( WLink (m_htmlResource) );
682-
682+
683683#if ( ANDROID )
684684 // Using hacked saving to temporary file in Android, instead of via network download of file.
685685 m_downloadHtmlReport->clicked ().connect ( std::bind ([this ](){
686686 android_download_workaround ( m_calpResource, " rel_eff.html" );
687687 }) );
688688#endif // ANDROID
689-
690689#endif
691690
691+ m_downloadHtmlReport->setText ( " HTML Report" );
692+
692693 WContainerWidget *nucCol = new WContainerWidget ();
693694 nucCol->addStyleClass ( " ToolTabTitledColumn RelActNucCol" );
694695
0 commit comments