mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Change the way how an element or directory is copied, this isn't the role of the new panel to manage the copy.
We must to use elementcollectionhandler instead git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4343 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -246,7 +246,7 @@ QList<ElementCollectionItem *> ElementsCollectionModel::items() const
|
||||
void ElementsCollectionModel::addCommonCollection()
|
||||
{
|
||||
FileElementCollectionItem *feci = new FileElementCollectionItem(m_root_item);
|
||||
if (feci->setRootPath(QETApp::commonElementsDir()))
|
||||
if (feci->setRootPath(QETApp::commonElementsDirN()))
|
||||
m_root_item->appendChild(feci);
|
||||
else
|
||||
delete feci;
|
||||
@@ -259,7 +259,7 @@ void ElementsCollectionModel::addCommonCollection()
|
||||
void ElementsCollectionModel::addCustomCollection()
|
||||
{
|
||||
FileElementCollectionItem *feci = new FileElementCollectionItem(m_root_item);
|
||||
if (feci->setRootPath(QETApp::customElementsDir()))
|
||||
if (feci->setRootPath(QETApp::customElementsDirN()))
|
||||
m_root_item->appendChild(feci);
|
||||
else
|
||||
delete feci;
|
||||
|
||||
Reference in New Issue
Block a user