mirror of
https://github.com/YACReader/yacreader
synced 2025-12-07 01:42:51 -05:00
Added copy constructors and operator= to folder and comicdb, LibraryItem has to be a QObject, and QObject disables copy.
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
|
||||
#include "library_item.h"
|
||||
|
||||
LibraryItem &LibraryItem::operator=(const LibraryItem &other)
|
||||
{
|
||||
this->name = other.name;
|
||||
this->path = other.path;
|
||||
this->parentId = other.parentId;
|
||||
this->id = other.id;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user