Commit 42c13abe authored by Dirk Wilden's avatar Dirk Wilden

recentfiles now showing correct files for obj with multiple files

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8393 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 33bac51e
......@@ -896,6 +896,7 @@ Core::slotRecentOpen(QAction* _action)
if ( recentFiles[i] == _action->text() ){
OpenFlipper::Options::loadingRecentFile(true);
loadObject(typeId(recentTypes[i]), recentFiles[i]);
coreWidget_->addRecent(recentFiles[i],typeId(recentTypes[i]) );
OpenFlipper::Options::loadingRecentFile(false);
return;
}
......
......@@ -539,14 +539,6 @@ void Core::slotObjectOpened ( int _id ) {
BaseObject* object2;
PluginFunctions::getObject(_id,object2);
/**
* \todo This is wrong here. If a core adds any object, this has already been called!
* If a plugin does that, its also wrong as this adds the name of the object rather than the filename!
*
*/
if ( OpenFlipper::Options::gui() )
coreWidget_->addRecent( filename, object2->dataType() );
// ================================================================================
// if this is the first object opend, reset the global view
// ================================================================================
......
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