Commit a5b70862 authored by Dirk Wilden's avatar Dirk Wilden

error message


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9117 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 99749e62
...@@ -75,8 +75,10 @@ bool Core::saveObject( int _id, QString _filename ) { ...@@ -75,8 +75,10 @@ bool Core::saveObject( int _id, QString _filename ) {
if ( OpenFlipper::Options::gui() ) { if ( OpenFlipper::Options::gui() ) {
if (ok) if (ok)
coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... done"), 4000 ); coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... done"), 4000 );
else else{
emit log(LOGERR, tr("Unable to save '%1'. Plugin failed. DataType %2").arg(_filename, dataTypeName(object->dataType()) ) );
coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... failed!"), 4000 ); coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... failed!"), 4000 );
}
if ( !OpenFlipper::Options::savingSettings() ) if ( !OpenFlipper::Options::savingSettings() )
coreWidget_->setStatus(ApplicationStatus::READY ); coreWidget_->setStatus(ApplicationStatus::READY );
...@@ -91,8 +93,10 @@ bool Core::saveObject( int _id, QString _filename ) { ...@@ -91,8 +93,10 @@ bool Core::saveObject( int _id, QString _filename ) {
} }
// no plugin found // no plugin found
if ( OpenFlipper::Options::gui() ) if ( OpenFlipper::Options::gui() ){
emit log(LOGERR, tr("Unable to save '%1'. No plugin found. DataType %2").arg(_filename, dataTypeName(object->dataType()) ) );
coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... failed!"), 4000 ); coreWidget_->statusMessage( tr("Saving ") + _filename + tr(" ... failed!"), 4000 );
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment