mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Don't use QUCSDIR with QUCS-S
This commit is contained in:
parent
e91e4b9088
commit
d1bd120d41
@ -73,7 +73,11 @@ int main(int argc, char *argv[])
|
||||
QucsSettings.showConsole = true;
|
||||
|
||||
// is application relocated?
|
||||
char * var = getenv ("QUCSDIR");
|
||||
#ifdef WITH_SPICE
|
||||
char *var = NULL; // Don't use QUCSDIR with Qucs-S
|
||||
#else
|
||||
char* var = getenv("QUCSDIR");
|
||||
#endif
|
||||
QDir QucsDir;
|
||||
if (var != NULL) {
|
||||
QucsDir = QDir (var);
|
||||
|
@ -85,7 +85,11 @@ int main(int argc, char *argv[])
|
||||
QucsSettings.font = QFont("Helvetica", 12);
|
||||
|
||||
// is application relocated?
|
||||
char * var = getenv ("QUCSDIR");
|
||||
#ifdef WITH_SPICE
|
||||
char *var = NULL; // Don't use QUCSDIR with Qucs-S
|
||||
#else
|
||||
char* var = getenv("QUCSDIR");
|
||||
#endif
|
||||
QDir QucsDir;
|
||||
if (var != NULL) {
|
||||
QucsDir = QDir (var);
|
||||
|
@ -99,7 +99,11 @@ int main(int argc, char *argv[])
|
||||
QucsSettings.QucsHomeDir.setPath(QDir::homePath() + "/.qucs");
|
||||
|
||||
// is application relocated?
|
||||
char * var = getenv ("QUCSDIR");
|
||||
#ifdef WITH_SPICE
|
||||
char *var = NULL; // Don't use QUCSDIR with Qucs-S
|
||||
#else
|
||||
char* var = getenv("QUCSDIR");
|
||||
#endif
|
||||
QDir QucsDir;
|
||||
if (var != NULL) {
|
||||
QucsDir = QDir(QString(var));
|
||||
|
@ -790,7 +790,11 @@ int main(int argc, char *argv[])
|
||||
// continue to set up overrides or default settings (some are saved on exit)
|
||||
|
||||
// check for relocation env variable
|
||||
#ifdef WITH_SPICE
|
||||
char *var = NULL; // Don't use QUCSDIR with Qucs-S
|
||||
#else
|
||||
char* var = getenv("QUCSDIR");
|
||||
#endif
|
||||
QDir QucsDir;
|
||||
if (var!= NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user