diff --git a/src/SpecMeasManager.cpp b/src/SpecMeasManager.cpp index 5a60c291..6d8e74e8 100644 --- a/src/SpecMeasManager.cpp +++ b/src/SpecMeasManager.cpp @@ -5820,7 +5820,7 @@ void SpecMeasManager::showPreviousSpecFileUsesDialog( std::shared_ptrtriggerUpdate(); @@ -5919,10 +5919,9 @@ void SpecMeasManager::checkIfPreviouslyOpened( const std::string sessionID, }catch( FileToLargeForDbException &e ) { WString msg = WString::tr("smm-cant-save").arg(e.what()); - cerr << msg.toUTF8() << endl; WServer::instance()->post( sessionID, - boost::bind( &postErrorMessage, msg.toUTF8(), WarningWidget::WarningMsgHigh ) ); + boost::bind( &postErrorMessage, msg, WarningWidget::WarningMsgHigh ) ); } return; }//if( this is a new-to-us file ) @@ -5954,7 +5953,7 @@ void SpecMeasManager::checkIfPreviouslyOpened( const std::string sessionID, cerr << "Error checking if this file had been opened previously: " << e.what() << endl; WServer::instance()->post( sessionID, boost::bind( &postErrorMessage, - string("Error checking if this file had been opened previously"), + WString("Error checking if this file had been opened previously"), WarningWidget::WarningMsgHigh ) ); }//try / catch }//void checkIfPreviouslyOpened(...)