Commit e79525bd authored by Dirk Wilden's avatar Dirk Wilden
Browse files

moved deleteObject to LoadSaveInterface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5382 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ff9df915
......@@ -112,7 +112,7 @@ int FilePolyMeshPlugin::loadObject(QString _filename){
if (!ok)
{
std::cerr << "Plugin FilePolyMesh : Read error for Poly Mesh\n";
PluginFunctions::deleteObject( object->id() );
emit deleteObject( object->id() );
return -1;
}
......
......@@ -67,7 +67,7 @@ class FilePolyMeshPlugin : public QObject, BaseInterface, FileInterface, LoadSav
void log(QString _message);
void emptyObjectAdded( int _id );
void deleteObject( int _id );
private slots:
void fileOpened( int /*_id*/ ){};
......
......@@ -147,7 +147,7 @@ int FileTriangleMeshPlugin::loadObject(QString _filename){
if (!ok)
{
std::cerr << "Plugin FileTriangleMesh : Read error for Triangle Mesh\n";
PluginFunctions::deleteObject( object->id() );
emit deleteObject( object->id() );
return -1;
}
......
......@@ -67,7 +67,7 @@ class FileTriangleMeshPlugin : public QObject, BaseInterface, FileInterface, Loa
void log(QString _message);
void emptyObjectAdded( int _id );
void deleteObject( int _id );
private slots:
void fileOpened( int /*_id*/ ){};
......
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