From 847bb80e4b1879000e674f8258480d8890038227 Mon Sep 17 00:00:00 2001 From: Vadim Kuznetzov Date: Mon, 29 Jun 2015 18:26:44 +0300 Subject: [PATCH] Fixed library paths for user libs when component is dragged from ComponentsTree --- qucs/qucs-lib/qucslib_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qucs/qucs-lib/qucslib_common.h b/qucs/qucs-lib/qucslib_common.h index 50279a1290..fc4dbaa5bd 100644 --- a/qucs/qucs-lib/qucslib_common.h +++ b/qucs/qucs-lib/qucslib_common.h @@ -19,6 +19,7 @@ #define _QUCSLIB_COMMON_H_ #include +#include #include #include @@ -190,6 +191,10 @@ inline int makeModelString (QString libname, QString compname, QString compstrin } // construct the library model string + QString full_userlib = QucsSettings.QucsHomeDir.canonicalPath() // check is it user library or not ? + +QDir::convertSeparators ("/user_lib/")+libname; + QFileInfo inf(full_userlib+".lib"); + if (inf.exists()) libname = full_userlib; modelstring = "