diff --git a/Core/Core.cc b/Core/Core.cc index 554ff685fabaa08aa930fd4ef7d0d0d45fee3222..2ceb2155b13ba7fcd083f2a9fa00dd29710eeb76 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -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; } diff --git a/Core/openFunctions.cc b/Core/openFunctions.cc index 864be1d40c8a22a9ea55c727843960f8c44cbaa6..7f4f129660d09cb51235db4a219dc654c9ca59bf 100644 --- a/Core/openFunctions.cc +++ b/Core/openFunctions.cc @@ -538,14 +538,6 @@ void Core::slotObjectOpened ( int _id ) { QString filename = object->path() + OpenFlipper::Options::dirSeparator() + object->name(); 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